def remote_destroy(self):
        self.transport.loseConnection()
Method should be called to destroy the connection and the protocol.
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/slave/protocol.py/RCEInternalProtocol.remote_destroy