@Override
      public void run2() throws CacheException {
        Region region = getRootRegion().getSubregion(name);
        region.close();
        PoolManager.find("clientPool").destroy();
      }
This the dunit test for the bug no : 36969
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/RemoteQueryDUnitTest.java