jamie undoubtedly realized it , too , but the realization was poor consolation to him , faced with the matching realization that rather than seeing his men safely removed from the risks of a deteriorating campaign , his orders had landed them in one of the worst prisons in all of scotland , branded as cowards and sentenced to a shameful death by hanging .