For a working comparison this would be like you taking over a company that was just found guilty of multiple environmental, safety, and ethics violations, lost all of their best employees, and saw their stock prices tank by 90% as the company is lambasted and drug through the mud by the national media and late night talk shows for months.
Now while you never actually got the company back to profitable and in fact the company was still hemorrhaging money under your leadership, you came on and cleaned up the violations, got the company back in line with government regulations, hired in a few 'high potential' employees, and even bolstered the stock price, keeping the company from completely going bankrupt prior to getting fired. Yes, the person who replaced you made the company profitable again and the future looks very promising under their guidance, but at the same time, yeah, you were a financial failure, but I bet there's a number of people who will look at you in a fonder manner than you think you deserve.