protected String checkFailure() {
    Throwable tilt = SystemFailure.getFailure();
    if (tilt != null) {
      // Allocate no objects here!
      return SystemFailure.JVM_CORRUPTION;
    }
    return null;
  }
Use this utility function in your implementation of cancelInProgress() and cancelled() to
indicate a system failure

@return failure string if system failure has occurred
geode-core/src/main/java/org/apache/geode/CancelCriterion.java