Method stage.hide() makes JavaFX call System.exit(). This is Windows behavior, but on the mac an application should keep running no matter how many windows the user closes and only quit once the user quits the app.
JDK-8128180Remove workaround on Mac where we are calling System.exit
JDK-8114065Mac: need workaround for crash / hang on exit issues
JDK-8100982Provide ability to alter the implicit "exit on last window closed" behavior