(a) A person who is subject to this article and accused of an offense against civil authority shall be delivered, upon request, to the civil authority for trial or confinement.
(b) When delivery under this article is made to any civil authority of a person undergoing sentence of a court-martial, and the delivery, if followed by conviction in a civil tribunal, interrupts the execution of the sentence of the court-martial, the offender, after having answered to the civil authorities for the offense, shall, upon the request of competent military authority, be returned to the place of original custody for the completion of his or her sentence.