def _lostProtocol(self, reason):
        log.err(reason, '%r disconnected' % (self,))
        deferreds, self._notifyOnDisconnect = self._notifyOnDisconnect, []
        for d in deferreds:
            d.errback(reason)
        self._proto = None
        self.client.cancelRequests()
dataset/ETHPy150Open flowroute/txjason/txjason/netstring.py/JSONRPCClientFactory._lostProtocol/original