private void stopScan(ScanResponse resp) {
    if (resp.getMoreResultsInRegion()) {
      // we have more results in region but user request to stop the scan, so we need to close the
      // scanner explicitly.
      closeScanner();
    }
    completeNoMoreResults();
  }
This method is used when {@link ScanControllerImpl#suspend} had ever been called to get a
{@link ScanResumerImpl}, but now user stops scan and does not need any more scan results.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.java