Detect leaving the room.