/** * Shut down the IRC connection */ public function __destruct() { $this->client->removeAllListeners(); unset($this->client); unset($this->connection); unset($this); }