'Called when loosing the connection.
Args:
reason (str): Reason for loosing connection.'

def connectionLost(self, reason):

    if (not self._logging_out):
        print(('client    %s(%s)    lost    connection    (%s)' % (self.key, self.cid, reason)))
