public function close()
    {
        $this->requireOpenConnection();

        $response = $this->curl(
            'DELETE',
            '/proxy/' . $this->port
        );

        $this->closed = true;
    }