public static boolean isJVMFailureError(Error err) {
    return err instanceof OutOfMemoryError || err instanceof UnknownError;
  }
Returns true if the given Error is a fatal to the JVM and it should be shut down. Code should
call {@link #initiateFailure(Error)} or {@link #setFailure(Error)} if this returns true.

@param err an Error
@return whether the given error is fatal to the JVM
geode-core/src/main/java/org/apache/geode/SystemFailure.java