Failure can be a strong motivation for success if you know how to deal with it.