What is the meaning of Cut_one's_losses?

To discontinue something to put a stop to continued losses after facing that it is unlikely it will ever bear fruit.

Source: wiktionary.org