Fixed quit functionality for chatroom.