> I feel as though I've invested too much time and energy to bail now.

I'm currently reading through "What I wish I knew when I was 20" by Tina Seelig (more entrepreneur-y than expected, but pretty good) and this exact topic is discussed in Chapter 5.

> […] “even great ideas require a tremendous amount of work to reach a successful outcome, it’s incredibly hard to know when to keep pushing on a problem, hoping for a breakthrough, and when to walk away. We all know that persistence is to be admired, but when does it become foolish to continue working on something that’s never going to fly? Gil Penchina, CEO of Wikia, describes the dilemma wonderfully: “If you throw gasoline on a log, all you get is a wet log. But if you throw gasoline on a small flame, you get an inferno.” That is, it’s important to know whether you’re putting energy into something that has the potential to pay off. This is one of life’s biggest challenges. We often stay in dead-end situations way too long. This occurs when companies commit to a doomed product or project, or when individuals stay with jobs or in relationships that make them miserable, hoping the situation will improve.
So how do you know when to quit? This is a huge philosophical question. It’s always a mammoth challenge to separate your desire to make something work from the reality of the probability that it will work. Of course, the more you put into a project, the more likely it is to succeed. But some efforts will never pan out, no matter how much time, money, or sweat is injected. The most scientific answer I’ve found is, listen to your gut and look at your alternatives. Essentially, you have to negotiate honestly with yourself. Do you have the fortitude to push through the problems in front of you to reach a successful outcome, or are you better off taking another path?

> So quitting is hard—but it’s even harder to do it well. I’ve seen people quit gracefully and others quit so clumsily that they leave a huge crater in their wake. As discussed in detail in chapter 8, you are likely to bump into the same people again and again in life, often in unexpected ways. This alone is reason enough to make sure that when you quit, you do so with careful thought about the consequences for those around you. Besides the impact that quitting gracefully might have on you later, it is just the right thing to do. You can never rationalize quitting in such a way that you hurt your colleagues, friends, or former business.

> A colleague told me about his assistant, who was doing a terrific job. He gave her great reviews and spent a lot of time talking with her about her career path within his group. She made it clear that ultimately she hoped to move into a different field, and my colleague was supportive of this. In fact, he told her he would be delighted to serve as a reference for her anytime. With this as a backdrop, my colleague couldn’t have been more surprised when his assistant came in one day and gave two weeks’ notice. The team was in the midst of a huge project, the deadline three weeks away. She was going to leave one week before the project was completed, putting the entire team in a very difficult position. My colleague asked her several times if she would consider staying one more week to help him get to the end of the project, which involved dozens of people directly and several thousands indirectly. She refused, saying, “I know you’re going to be unhappy that I’m leaving no matter when I go, so I decided to do what I want.”

> My colleague felt as though he’d been kicked in the stomach. It was nearly impossible to fill in the holes she left during the last week of the project, and everyone worked around the clock to try to fill the void. All those who worked with her will remember that decision. Despite the fact that she did a terrific job while she was with them, the damage she did to her reputation during the last weeks of her employment dwarfed all the positive things she had done in prior years.
In sharp contrast, I’ve seen others quit jobs with remarkable style. Even if they were leaving because the job wasn’t a good match, the grace with which they left made such a positive impression that everyone involved would be pleased to give them a glowing recommendation at any time in the future. They provided enough notice to fill any gaps, they took the time to put their work in order so that someone else could pick up where they left off, and they even offered to help with the transition. These folks are heroes. They mastered the art of quitting well, and used their skill to turn a bad situation into something positive.