Quit room
At the right of view chat history icon is another icon for quitting the room. When you finish chat or if you want to change another chat room, click the icon and you will go back to the lobby.
If you want to leave you can click the Log out icon on the top directly.