Abdul Mahdi had to preserve what remained of his political history