'Causes the client to log out of the server. Triggered by ctrl-c signal.'

def logout(self):

    self._logging_out = True
    cmd = self._logout(self)
    print(('client    %s(%s)    logout    (%s    actions)' % (self.key, self.cid, self.istep)))
    self.sendLine(cmd)
