code: def _stop_handler(self, handler):
          
          try:
              yield from handler.stop()
          except Exception as e:
              self.logger.error(e)
docs: Stop a running handler and detach if from the session
          :param handler:
          :return: