meanwhile from the stage a spanish officer was announcing the execution of the three men , announcing their crimes and ending by intoning , `` you are hereby sentenced to be hanged by the neck until dead . ''