public boolean checkCacheClosing(InternalCache cache) {
    return cache == null || cache.isClosed();
  }
check to see if the cache is closing
geode-core/src/main/java/org/apache/geode/internal/cache/tx/RemoteOperationMessage.java