Added application.exit