public boolean internalDestroy() {
    boolean result = false;
    shouldDestroy.set(true); // probably already set but make sure
    synchronized (this) {
      active = false;
      notifyAll();
      Connection myCon = connection;
      if (myCon != null) {
        myCon.destroy();
        connection = null;
        result = true;
      }
    }
    return result;
  }
@return true if internal connection was destroyed by this call; false if already destroyed
geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/PooledConnection.java