Term: jump ship
Example: he almost had an urge to jump ship when he got in trouble something that was once trivial
Definition: to leave one's job, especially out of concern (from the image of passengers abandoning a sinking ship)