Yup, that's how you do it.
When you realize in the middle of the piece that you don't remember what comes next, laugh. It happens to everybody.
Your dress was altered incorrectly and you're about to go on. Laugh.
Everything goes superbly. It is the best performance of your life. The town critic thinks otherwise and prints the worst critique you've ever read.
It changes your body chemistry. It changes your attitude. It gives you perspective and space to remember who you are.
Things are going to happen. There's absolutely nothing you can do about it. You can't prevent them; this is Life.
Your attitude makes all the difference. So laugh.