A dishonorable discharge shall be given only to carry out the sentence of a court-martial.
Mass. Gen. Laws ch. 33, § 36