def METHOD_NAME(self, name, srv):
    logger.debug("Shutting down service %s", name)
    self.event_manager.handle(ServiceShutdownEvent(name, srv))
    self.component_registry.unregister(srv)
    srv.shutdown()