question: public static void exit ( int statusCode , @ Nullable PreSystemExitHook hook ) { flagStopping ( ) ; try { if ( hook != null ) { hook . run ( ) ; } } finally { System . exit ( statusCode ) ; } }
target:  Shutdown's the VM in such a way that flags that the vm is stopping. This is so that we don't run the normal exception handling code when shutting down the application.