A CMD-Q command on Mac is now handled in the same way as all other exit-commands, not as a simple System.exit() call