def connectionLost(self, reason):
        """
        Cause any outstanding commands to fail.
        """
        self._disconnected = True
        self._cancelCommands(reason)
        LineReceiver.connectionLost(self, reason)

        Cause any outstanding commands to fail.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/memcache.py