@Override
  public SystemTimer getCCPTimer() {
    synchronized (ccpTimerMutex) {
      if (ccpTimer != null) {
        return ccpTimer;
      }
      ccpTimer = systemTimerFactory.apply(getDistributedSystem());
      if (isClosing) {
        // poison it, don't throw.
        ccpTimer.cancel();
      }
      return ccpTimer;
    }
  }
Remove the {@code CacheLifecycleListener}.

@return true if the listener was removed
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java