He will be remembered for his foreign policy mistakes – and his refusal to let go.