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