If a new bond is given all the sureties making the motion shall be discharged from all liability for the acts of the principal thereafter done. If the object is so specified, the bond shall contain a covenant to indemnify the said sureties against any loss, cost or damage legally incurred by reason of the suretyship.