public function onShutdown() { if ($this->xmppclient) { return $this->xmppclient->onShutdown(); } return true; }