pick up (one's) marbles and leave
To abandon or withdraw from a project, situation, or activity in a petulant manner because one does not like way in which it is progressing. It seems that the governor is ready to pick up his marbles and leave if the state senate isn't willing to increase the funds for the redevelopment scheme. The danger of relying on a private organization to fund a political campaign is that they may pick up their marbles and leave if the candidate doesn't do everything that's in the company's interest.