Fix closing of ChatWindow on Exit