private void closeCacheConditionally(int ops, int threshold) {
    if (ops == threshold) {
      getCache().close();
    }
  }
Stops the cache server specified by port
geode-cq/src/distributedTest/java/org/apache/geode/internal/cache/PutAllClientServerDistributedTest.java