He refused to accept a coup in Togo , and was instrumental in making sure that the African Union did not destroy its credibility by installing Sudan 's president , Omar Hassan al-Bashir , as its leader despite the continuing carnage in Darfur .