code: public static void logAndExit(ExitLogger logger, int status) {
          logBeforeExit(logger);
          getExiter().exit(status);
          // If we get here, the exiter didn't really exit. So we
          // must be embedded or something, or perhaps in a test case
          // Reset the logged flag so we can log again the next time
          // someone "exits"
          logged.set(false);
      }
docs: Calls {@link #logBeforeExit(ExitLogger)} and then invokes the {@link Exiter}.
  @param logger logger the logger. Cannot be {@code null}
  @param status the status code to provide to the exiter