private static int exitWithStatus(int status){
  if (ToolIO.getMode() == ToolIO.SYSTEM) {
    System.exit(status);
  }
  return status;
}

private static int exitWithStatus ( int status ) { if ( ToolIO . getMode ( ) == ToolIO . SYSTEM ) { System . exit ( status ) ; } return status ; }
if run in the system mode , exits the program , in tool mode returns the status
