It is considered cowardice in the face of the enemy and is punishable by death according to the UCMJ.
And of course the treason he committed just means he ought to die slowly and severely ...oooops that’s my code... means he would get the death penalty as well