fold (up) (one's) tent
To quit, withdraw, or disengage (from something), especially quietly or discreetly. After allegations of embezzlement, the CEO decided to fold his tent and take an early retirement. You're going to have a lot of setbacks in life, so don't just fold up your tent and go home at the first sign of failure.