/**
  * Terminate the current process. Note that terminate is the *only* method that should be used to
  * terminate the daemon processes.
  *
  * @param status exit code
  * @param msg message used to create the {@code ExitException}
  * @throws ExitException if System.exit is disabled for test purposes
  */
 public static void terminate(int status, String msg) throws ExitException {
   /* LOG.info("Exiting with status "+status) */
   LOG.exiting_with_status(status).info();
   if (systemExitDisabled) {
     ExitException ee = new ExitException(status, msg);
     /* LOG.fatal("Terminate called",ee) */
     LOG.terminate_called(ee.toString()).fatal();
     if (null == firstExitException) {
       firstExitException = ee;
     }
     throw ee;
   }
   System.exit(status);
 }