There have been several instances where I have made a fairly elaborate response to a question, only to have it be closed a few seconds before I have posted my solution. This is incredibly annoying, and I was wondering if StackOverflow might consider changing the interface so that one cannot start editing/posting a new answer once the question has been closed, but answers crafted while the question was still open will be allowed to be submitted. What do others think about this approach to closing questions?
This used to happen, actually, until people realized that they could post to closed questions simply by changing the HTML on the page to submit a reply to a closed question. Instead of adding security to prevent this but still allow users to complete their responses to a question that's closed, the ability to post to a closed question was removed completely.
Now when posting a reply, there is a periodic check (I think it's every minute, but I'm not sure) to see if any new answers are posted, and to see if the question has been closed in the meantime. As such, you'll only lose a minute's worth of creating an answer. Sure, it's annoying, but losing a minute isn't that big of a deal.
It has happened to me a few times, and is highly annoying. The notion that only questions that should get deleted get deleted is wrong. Sometimes, people will delete their questions on a whim.
I wouldn't touch the asker's ability to delete their question, though. It should rather be ensured that the answer doesn't get lost (i.e. that <10k answerers have the chance to salvage the text through copy+paste).
If the answerer was posting a brilliant answer, it stands to reason they can open a question of their own, and answer it.