code: def stop_external_services(self):
          
          for service in self._started_services:
              self.logger.debug("Stopping application %s", service.name)
              try:
                  service.stop()
              except PluginException:
                  self.logger.exception("Stopping external service %s caused and exception!",
                                        service.name)
          self._started_services = []
docs: Stop all external services.
  
          :return: Nothing