public function close()
        {
            if (is_resource($this->fd)) {
                $this->send(self::TYPE_DISCONNECT);
                fclose($this->fd);

                return true;
            }

            return false;
        }