def stopProtocol(self):
        """
        Called when the transport is disconnected.

        Will only be called once, after all ports are disconnected.
        """

        Called when the transport is disconnected.

        Will only be called once, after all ports are disconnected.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/protocol.py