Hidalgo was turned over to the Bishop of Durango, Francisco Gabriel de Olivares, for an official defrocking and excommunication on July 27, 1811. He was then found guilty of treason by a military court and executed by firing squad on July 30 at 7 in the morning. Before his execution, he thanked his jailers, Private Soldiers Ortega and Melchor, in letters for their humane treatment. At his execution, Hidalgo placed his right hand over his heart to show the riflemen where they should aim. He also refused the use of a blindfold. His body, along with the bodies of Allende, Aldama and José Mariano Jiménez were decapitated, and the heads were put on display on the four corners of the Alhóndiga de Granaditas in Guanajuato. The heads remained there for ten years until the end of the Mexican War of Independence to serve as a warning to other insurgents. Hidalgo's headless body was first displayed outside the prison but then buried in the Church of St Francis in Chihuahua. Those remains would later be transferred in 1824 to Mexico City.
Try to answer this question if possible (otherwise reply "unanswerable"): Hidalgo was turned over by whom?
Bishop of Durango, Francisco Gabriel de Olivares