@Override
        public void afterQueryEvaluation(Object result) {
          // Destroy the region in the test
          region1.close();
        }
This the dunit test for the bug no : 36969
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/QueryUsingPoolDUnitTest.java