after many fruitless attempts to gain admittance to the prison , he found a strongly grated window in an unguarded part of the building which lighted the dungeon of the unfortunate mahom etan ; ag who , loaded with chains , waited in despair the execution of the barbarous sentence .