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