Hmmm well this always sucks.
The main thing is to learn from it I guess.
What measures can you put in place to prevent this from happening again? And I mean "positive" things ;D not things like: At the next project you temporarily pass on. placing a knife on the table, grinning as you test how sharp the edge is and ask: "So you are sure you can handle this? I've been burned before you know ..." ;)