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