Closes the connection by removing the user from all rooms

def close(self):
        """ Closes the connection by removing the user from all rooms """
        logging.debug('Closing for user {user}'.format(user=self.id.name))
        self.id.release_name()
        for room in self._rooms.values():
            room.disconnect(self)