When such action is pending in such a court, the trustees shall be discharged and the attachment dissolved if the mortgagee, in the manner provided in section 3151 of this title, files a bond in a sum equal to the amount for which attachment is directed in the writ, with sufficient sureties approved by such clerk or judge, conditioned that he or she will pay the judgment that may be rendered against him or her.
12 V.S.A. § 3152