This should apply to the Commander in Chief:
"Dereliction of duty is a specific offense under United States Code Title 10,892. Article 92 and applies to all branches of the US military. A service member who is derelict has willfully refused to perform his duties (or follow a given order) or has incapacitated himself in such a way that he cannot perform his duties. Such incapacitation includes the person falling asleep while on duty requiring wakefulness, his getting drunk or otherwise intoxicated and consequently being unable to perform his duties, or his vacating his post contrary to regulations. "
Quoting from WIkipedia (Dereliction of Duty).