Knowing when to take your losses is an essential part of eventual success.