docs: @Override
      public synchronized void stopScanner() {
          this.scanEnabled = false;
          cancelScan();
          safeClose(deploymentOperations);
          this.deploymentOperations = null;
          if (undeployScanTask != null) {
              undeployScanTask.cancel(true);
          }
          this.undeployScanTask = null;
      }