code: @Override
      protected void doStop() {
          try {
              KieScanner scanner = ((KieScanner)(_perRequestRuntimeManager.getRuntimeEngine().getKieSession().getEnvironment().get("KieScanner")));
              if (scanner != null) {
                  try {
                      scanner.stop();
                      scanner.shutdown();
                  } catch (Throwable t) {
                      CommonKnowledgeLogger.ROOT_LOGGER.problemStopppingKieScanner(t.getMessage());
                  } finally {
                      String releaseId = super.getModel().getManifest().getContainer().getReleaseId();
                      if (releaseId != null && !releaseId.trim().equals("")) {
                          KieServices _kieServices = KieServices.Factory.get();
                          // fix for SWITCHYARD-2241
                          _kieServices.getRepository().removeKieModule(ContainerManifest.toReleaseId(releaseId));
                      }
                  }
              }
              _perRequestRuntimeManager.close();
          } finally {
              try {
                  disposeSingletonRuntimeEngine();
              } finally {
                  super.doStop();
              }
          }
      }
docs: {@inheritDoc}