Quitting so you come out ahead is good business. Throwing your career away because you’re in a bad mood is something different.