If, by the act of God, of the government of the United States, of any state or by sentence of law, bail are unable without their fault to surrender their principal, they shall, upon motion before final judgment on scire facias, be exonerated and discharged by the court, with or without costs as the court deems equitable.
Mass. Gen. Laws ch. 276, § 70