Article 90 of the Uniform Code of Military Justice (U.S.) provides:
Any person subject to this chapter who--
(1) strikes his superior commissioned officer or draws or lifts up any weapon or offers any violence against him while he is in the execution of his office; or
(2) willfully disobeys a lawful command of his superior commissioned officer;
shall be punished, if the offense is committed in time of war, by death or such other punishment as a court-martial may direct, and if the offense is committed at any other time, by such punishment, other than death, as a court-martial may direct.
Mutiny (Art. 94) is also still punishible by death; so is desertion (Art. 85)or running away (Art. 99) in wartime.
In 1757 the British court-martialled and shot Admiral Byng, the commander of an unsuccessful expedition to relieve the British garrison at Minorca, for "willfully failing to do his utmost to engage the enemy." That is still a capital crime under Art. 99 of the UCMJ.