public function __destruct() { $this->handleClose(); parent::__destruct(); unset($this->socket); unset($this->loop); unset($this->open); unset($this->paused); }