@Override
  public void close() {
    continueProcessing.set(false); // signals we are done.

    // Close the socket. This will also cause the underlying streams to fail.
    try {
      if (socket != null) {
        socket.close();
      }
    } catch (IOException ignore) {
      // ignore
    }

    if (cacheHelper != null) {
      cacheHelper.close();
    }
    releaseCommBuffer();

    stats.close();
  }
Signals the run thread to stop, closes underlying resources.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientUpdater.java