Sometimes a loss is the best thing that can happen. It teaches you what you should have done next time.
or simply: