Fix quit message not being sent