this truly was the history that kotak wanted to have written for himself , but unfortunately it did not end the way he wished as it turned into an account of his defeat , which would be preserved by his foes as a cautionary tale not to rebel .