Improve Java FX start/stop.