When bad things happen to you, use the Ready, SET, Go approach:
S – See it as temporary (will this be a big deal 10 years from now?)
E – Externalize (step back and see the big picture; don’t take it personally)
T – Take action (make plan/formula for correction, focus on things you can control)
This will generate a positive frame of mind that is future oriented.