DMs make mistakes, players make mistakes. You both made little mistakes at the wrong moment, and a TPK ensued.
It happens. I've been there. You brush yourself off, laugh, and say, "Same time next week?"
I agree with the Jester, the one thing I really wouldn't have done is say "That didn't...