Fixed Application.exit()