public function __destruct() { if (!$this->config['persistent']) { if ($this->socket) { $this->close(); } } }