Every time I listen back to solos of mine I'll hear something I like and then another phrase that I can't stand. You have to live with what you play. And the recording medium puts that on us. When I play live gigs I don't think so much like that.
You build on failure. You use it as a stepping stone. Close the door on the past. You don't try to forget the mistakes, but you don't dwell on it. You don't let it have any of your energy, or any of your time, or any of your space.