in the java version when the setOncloseRequest is ...
# tornadofx
r
in the java version when the setOncloseRequest is done, clicking the "X" from the window will not stop the program but hide the stage