protected void removeHostedTXStatesForClients() {
    synchronized (hostedTXStates) {
      Iterator<Entry<TXId, TXStateProxy>> iterator = hostedTXStates.entrySet().iterator();
      while (iterator.hasNext()) {
        Entry<TXId, TXStateProxy> entry = iterator.next();
        if (entry.getValue().isOnBehalfOfClient()) {
          entry.getValue().close();
          if (logger.isDebugEnabled()) {
            logger.debug("Cleaning up TXStateProxy for {}", entry.getKey());
          }
          iterator.remove();
        }
      }
    }
  }
Called when the CacheServer is shutdown. Removes txStates hosted on client's behalf
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java