~ fix: application thread does not exit when stage closed (otherwise we cannot open other GUIs after hiding initial GUI).