code: @Override
      public synchronized void stop(StopContext context) {
          final DeploymentScanner scanner = this.scanner;
          notificationRegistryValue.getValue().unregisterNotificationHandler(ANY_ADDRESS, this.scanner, DEPLOYMENT_FILTER);
          this.scanner = null;
          scanner.stopScanner();
          scheduledExecutorValue.getValue().shutdown();
          if (callbackHandle != null) {
              callbackHandle.remove();
          }
      }
docs: {@inheritDoc}