code: def check_event(self, event):
          # type: (ServiceEvent) -> bool
          
          with self._lock:
              if self.state == StoredInstance.KILLED:
                  # This call may have been blocked by the internal state lock,
                  # ignore it
                  return False
  
              return self.__safe_handlers_callback("check_event", event)
docs: Tests if the given service event must be handled or ignored, based
          on the state of the iPOPO service and on the content of the event.
  
          :param event: A service event
          :return: True if the event can be handled, False if it must be ignored