private void checkCancelled() {
    try {
      membership.checkCancelled();
    } catch (MembershipClosedException e) {
      if (e.getCause() instanceof MemberDisconnectedException) {
        ForcedDisconnectException fde = new ForcedDisconnectException(e.getCause().getMessage());
        throw new DistributedSystemDisconnectedException(e.getMessage(), fde);
      }
      throw new DistributedSystemDisconnectedException(e.getMessage());
    }
  }
This method catches membership exceptions that need to be translated into
exceptions implementing CancelException in order to satisfy geode-core
error handling.
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionImpl.java