It's always a nasty moment when you announce your resignation and the share price whistles up by 10%.