Cut your losses

Meaning: To stop doing something that is losing money, time or effort.

Example: After months of losses, the company decided to cut its losses and close the branch.