When things go badly, be cool.
The only things within your control are work ethic and integrity.
As long as you work hard and are honest, be cool with bad outcomes.
It’s like missing the last flight out of town, and then hearing the plane crashed into a mountain and the survivors spent three weeks hiking in snow and eating human flesh to survive.
Just because it seems you’ve failed, doesn’t mean you’ve actually failed.
Just work as hard as you can, be honest, and then be cool in the face of setbacks.
Everything happens for a reason.