How do you handle making a mistake?

Learn the lesson, archive the situation, and move on.

Squeeze the lemon, throw away the lemon, use the juice.