Dealing with failure is easy: work hard to improve.
Success is also easy to handle: you've solved the wrong problem; work hard to improve.