How to Deal with Failure?

Have you ever experienced failure? Disappointment? Maybe you didn't do as well as you hoped on that test. Maybe you messed up on a play or lost in your sport.   Regardless, chances are you've failed before one way or another. How do you deal with it? Are you a cool cucumber or do you shut down?