private void cancelReconnect() {
    reconnectCancelled = true;
    if (isReconnecting()) {
      synchronized (reconnectLock) { // should the synchronized be first on this and
        // then on this.reconnectLock.
        reconnectLock.notifyAll();
      }
    }
  }
Make sure this instance of DS never does a reconnect. Also if reconnect is in progress cancel
it.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java