Any defendant in attachment, desiring the return of property attached, may, at his or her option, instead of or in substitution for the bond required in the preceding section, give like bond and security, in a sum sufficient to cover the amount due sworn to in behalf of the plaintiff, with all interest, damages and costs of the action, conditioned that the defendant will pay the plaintiff the amount of the judgment and costs which may be entered against him or her in that action, on a final trial, within 90 days after such judgment shall be entered or a recognizance, in substance hereinabove stated, may be taken by the court, and filed of record, in which case the court shall approve of the security and the recognizance made to the plaintiff, and upon a forfeiture of such recognizance judgment may be entered and enforced as in other cases of recognizance. In either case, the attachment shall be dissolved, and the property taken restored, and all previous proceedings, either against the sheriff or against the garnishees, set aside, and the cause shall proceed as if the defendant had been seasonably served with a summons.
735 ILCS 5/4-120