Fix bug #2398, "Race when closing compose during drafting"