added proper leaving from rooms