public static void exit ( final int exitCode , final Exception ex ) { System . err . println ( JPService . getApplicationName ( ) + " crashed..." ) ; ExceptionPrinter . printHistory ( ex , System . err ) ; System . exit ( exitCode ) ; }
Method exists the application and prints the given exception as error description .