And yet, losing is an inevitable fact of life. Moreover, it requires more mastery than success, it is painful and it is at least as dangerous as winning**. Both wining and losing are things to pay a price for, without paying too much.
If you are not ready to pay what it takes for winning and the cost of losing, you are too weak to start taking risk in the first place. Worse, even if all you want is to keep things as they are, to preserve the precious links with people you cherish, the simple, unforgiving truth is that what you don't have the courage to lose, you cannot keep.
This sounds like platitude - most proven wisdom does - but paradoxically, it is deep truth, surprising for many: a bad loser is not of the winners. So, you better learn to lose properly as a part of learning to win. For this, it is useful to know in advance what to do when and while you lose. And afterwards.
The simple life-saving truth to keep in mind is that you do not need to perish each time you fail something. A fall is not the end of the world. It is only the end of something and there is always something else coming after it. The wheel will keep turning, there will be many ups and downs, as long as you live. In fact, loosing some and wining some is the sign that you are still alive.
You may even learn to take advantage from the occasions of failing; losing with grace and courage will not only ease the hurt or help you diminish de damage, but also - as a surprising collateral gain - build up your credibility and the respect from other people. That in turn is the substance of self-respect and future success.
Defeat, not victory is when solid quality shows. If you are strong and able to take a distance while you lose, "If you can meet with Triumph and Disaster and treat those two impostors just the same" , people will grow confident that there is someone inside you, a person, one capable to win later.
The strong and clever and the skilled will acknowledge promptly, stop the part of harm that depends on them and start immediately what is needed to repair or do better, at least not to do worse. Say “yes, I was wrong” or “yes, you are stronger”, “I am sorry, please excuse me!” Even foes respect this.
Prevent the flood, just say “Stop!", swiftly. "This does not work." "This dream was delusion. Let us do better.” Or, in real danger, don't say anything, just leave the place carefully, now. If needed, run! Do not collapse! Try another life; when you cannot change things out of your power, you can always change yourself.
The act of losing is among other things a ritual of burial, of writing off what you invested from your heart, a rite of parting. Do not allow it to be reduced into a ritual of demise or degradation. Go beyond that punishment. A rite must be completed properly, with the right roles played by the parties, the expected moves and symbols; or it will not work. If you fail to finish, close, end, put to rest what failed, you would carry the burden forever. Unfinished business sticks to the mind for years and the cup of loss not emptied is bottomless.
Draw then a dignified line, offer a respectful rite of passage from what was, conspicuous for the persons involved, start a new chapter.
"Good losing" is additionally a unique occasion of learning from error.
The fall is authentic, critical experience, and what you understand now you will not forget. Such learning becomes part of who you are and steels you. This is the kind of hurt of which Nietzsche wrote " ...What does not kill me makes me stronger."
An educated person, competent when losing, must take distance and conclude a defeat by examining - alone or with friends - what worked and what to avoid. This is wisdom extracted for the future and precious experience to nourish later moments when you will say: “This reminds me of...” The quitter who abandons the work of understanding, gains nothing, only remembers humiliation, bitterness, unfinished business and hatred.
Skill in a time of loss means acknowledging painful truth, facing it, not giving up; it combines courage, humility and patience but also some superior understanding: untiring resilience in following your deeper or higher course; like the water of Tao, temporarily evaporated into clouds, or frozen or muddied, which will hover or lie dormant as long as needed, without sterile struggle, but which will flow without fail, at the first occasion when the way is open, it’s natural course to where it belongs .
* Do not misunderstand me; indulging to lose, particularly in small things, forming a victim habit, is the way towards becoming a typical loser. To be someone rather than a weak nobody, it is best practice not to let pass the many losses to which we are invited by our own fault or inattention or by so many circumstances. Particularly the minor ones. If the matter is reasonable, make a habit to repost, to come back and insist - within the limits of good taste - until you get what you want. This habit is formative of resilience and precious in time, to win.
** and thus rising envy
 Rudyard Kipling, If
 Frederic Nietzsche, Twilight of the Idols or How to Philosophize with a Hammer, Maxims and Arrows, 8