he was discharged and was about to be sentenced to death