code: def logout(self):
          
          if self.logged_on:
              self.logged_on = False
              self.send(MsgProto(EMsg.ClientLogOff))
              try:
                  self.wait_event(self.EVENT_DISCONNECTED, timeout=5, raises=True)
              except:
                  self.disconnect()
              self.idle()
docs: Logout from steam. Doesn't nothing if not logged on.
  
          .. note::
              The server will drop the connection immediatelly upon logout.