Failure is always a demoralizing and upsetting experience. You cannot always control whether difficult things happen to you in life but you can control, to a large extent, how you react to them.