updating sockets to leave rooms