cut your losses
(to stop doing something that is failing before the situation becomes even worse)
- I wasn’t benefiting from the business, and it cost me a lot of money to pay bills, so I decided to cut my losses and sell it.
- You should take his advice and cut your losses.