I inherited a team of seven working on a project. They were led by a very strong personality who led the project based on his principles (he was interested in funneling as much corporate money into "free software" as possible while resisting delivery of business value). He'd been running the project for a long time by the time I inherited the team. One of the upper level folks gave me a call on Thursday and said, "In the operations call on Wednesday I'm going to propose killing that project because it's gone off the rails. We can use the money elsewhere. Just giving you a heads up".
I spent the weekend figuring out how to pivot the majority of the staff into other projects, use staffing as-needed to develop features for business need, and provide a minimal maintenance budget. I called the guy who wanted to kill it on Monday, presented the plan, and he said he'd sign off on it.
When I told the lead that the project will need to change he was outraged. He accused me of abandoning free software blah blah blah. I didn't get a chance to tell him about how I saved his job and the jobs of everyone else on the team by working 32 hours on my weekend and finding them other work to do.