public function disconnectFromNSQLookupd($addr)
    {
        $addr = $this->formatAddress($addr);
        if (!isset($this->lookupdHTTPAddrs[$addr])) {
            throw new NsqException("not connected");
        }

        if (count($this->lookupdHTTPAddrs) === 1) {
            throw new NsqException("cannot disconnect from only remaining nsqlookupd HTTP address $addr");
        }

        unset($this->lookupdHTTPAddrs[$addr]);

        foreach ($this->getConnections() as $conn) {
            if ($conn->getLookupAddr() === $addr) {
                $conn->tryClose();
            }
        }
    }