(2)If the thing is done within the time specified in the bond, the [Assistant Commissioner of Customs or Deputy Commissioner of Customs] [ Substituted by Act 27 of 1999, Section 100, for " Assistant Commissioner of Customs" (w.e.f. 11.5.1999). Earlier, these words were substituted by Act 22 of 1995, Section 50 (w.e.f. 26.5.1995).] shall cancel the bond as discharged in full and shall, on demand, deliver it, so cancelled, to the person who has executed or who is entitled to receive it; and in such a case that person shall not be liable to any penalty provided in this Act or, as the case may be, in such other law for the contravention of the provisions thereof relating to the doing of that thing.