The owner, his or her agent or attorney, or any other person interested in such water craft, desiring the return of the property attached, having first given notice to the plaintiff, his or her agent or attorney, of his or her intention to bond the same, may, at any time before judgment, file with the court in which the action is pending, a bond to the parties, having previously filed a complaint or intervening petition against such craft, in a penalty at least double the aggregate of all sums alleged to be due the several plaintiffs or intervening petitioners, with security to be approved by the court, conditioned that the obligors will pay all moneys adjudged to be due such claimants, with costs of the action.
735 ILCS 5/4-216