If a person convicted of a capital crime is, at the time when sentence is to be imposed, found by the court to be insane, it may cause such person to be removed to one of the state hospitals for such term and under such limitations as it may order. If a person convicted of a capital crime is, at the time when sentence is to be imposed, found by the court to be pregnant, the court shall not pass sentence upon her until it finds that she is no longer pregnant.
Mass. Gen. Laws ch. 279, § 61