I left it open-ended, actually. I talked to the CDO and explained why I was leaving. He agreed with the decision and thanked me for being brave enough to stand up and say it.
It ended up being three weeks before we agreed that I'd successfully handed off everything.
No bad feelings either way -- I'd joined the company because they had said that they wanted to 'grow up,' but that was a feeling percolating up from below. The lower levels of the company wanted to grow up and stop firefighting all the time. The top levels of the company would fight you every last way.