Wiktionary
cut one's losses
vb. To discontinue an effort that seems unlikely ever to bear fruit.