Sir Gus O’Donnell wanted to quit after the election