pick up one's marbles and go home

Verb

 * 1)  To abruptly leave or abandon a situation or activity in which one is dissatisfied with the way it is progressing.