public static boolean setExitOK(boolean newVal) {
    boolean result = exitOK;
    exitOK = newVal;
    if (exitOK) {
      exitExcuse = new Throwable("SystemFailure exitOK set");
    } else {
      exitExcuse = null;
    }
    return result;
  }
Indicate whether it is acceptable to call {@link System#exit(int)} after failure processing has
completed.
<p>
This may be dynamically modified while the system is running.

@param newVal true if it is OK to exit the process
@return the previous value
geode-core/src/main/java/org/apache/geode/SystemFailure.java