public function handleRouterStop(RouterStopEvent $event) { if ($this->session) { $this->session->shutdown(); } $this->internalClient->onClose("router stopped"); }