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.
The impact of a scientific discovery can be profound, often reaching far beyond the initial expectations.