@Override
  public synchronized void close() {
    for (ConnectionStats stats : statMap.values()) {
      stats.close();
    }

    statMap.clear();
    endpointMap = Collections.emptyMap();
    listener.clear();
  }
Used by Endpoint only, when the reference count for this endpoint reaches 0
geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java