set modelStage before showAndWait()
set modelStage before showAndWait()

set modelStage before calling showAndWait() so closeModal() can access the stage
genobis/tornadofx,edvin/tornadofx,edvin/tornadofx,nimakro/tornadofx,nimakro/tornadofx,genobis/tornadofx