code: def safe_callback(self, event, *args, **kwargs):
          # type: (str, *Any, **Any) -> Any
          
          if self.state == StoredInstance.KILLED:
              # Invalid state
              return None
  
          try:
              return self.__callback(event, *args, **kwargs)
          except FrameworkException as ex:
              # Important error
              self._logger.exception(
                  "Critical error calling back %s: %s", self.name, ex
              )
  
              # Kill the component
              self._ipopo_service.kill(self.name)
  
              if ex.needs_stop:
                  # Framework must be stopped...
                  self._logger.error(
                      "%s said that the Framework must be stopped.", self.name
                  )
                  self.bundle_context.get_framework().stop()
              return False
          except:
              self._logger.exception(
                  "Component '%s': error calling callback method for event %s",
                  self.name,
                  event,
              )
              return False
docs: Calls the registered method in the component for the given event,
          ignoring raised exceptions
  
          :param event: An event (IPOPO_CALLBACK_VALIDATE, ...)
          :return: The callback result, or None