Personally - based on absolutely nothing, of course - I think he had probably told Bush that he would resign if the Dems won. Bush had obviously taken him seriously enough to line up a replacement, but probably didn't really believe he was going to have to carry it out. I think that's why Bush seemed so flustered and unprepared. Sadly, I don't think Bush expected the Dems to win.
/johnny