public static native exit(exitCode as Int = 0)
Terminates the current process.
if hasError: Application.exit(Application.EXIT_FAILURE)
exitCode