(1)Where an offence under this Act had been committed by any person while subject to this Act, and he has ceased to be so subject, he may be taken into and kept in military custody, and tried and punished for such offence as if he continued to be so subject.