What I usually do in times like that is to listen to some calm music until I'm serene because, when I'm embarrassed, I'm not in the right mind to be making sound judgments. After I'm calm, I take a logical look at the incident, tell myself that I'm not as bad a person as I'm making myself out to be, and I try to learn from that incident.