Any time you are exposed in a musical piece the stakes go up for you and your self-image. No one wants to imagine the audience thinking "I thought he was better than that." The secret is to play as often as possible and if/when something is executed at less then optimum, you must FORGET IT and concentrate on the next note.
Yesterday in church I was the only trumpet player there. This meant a lot of playing and no way to hide. My standards in that situation are to strive for absolute perfection... all dynamics executed correctly and tastefully, no cracks, no sloppy attacks, clean intervals, in short... perfect. After 2 services, my score was 5 "mistakes." I doubt that anyone else remembers the mistakes other than me. Had I dwelled on "that attack was not as clean as it should have been" instead of "let's get the next one RIGHT" I would have made probably 10 times the amount of mistakes. Shoot for the moon and get as close as you can, and FOCUS on the sound, not yourself. In the end, that is what is important.
Trumpet playing will make you a humble man.