When any distress warrant is levied, the person whose property is distrained, may release the same by entering into bond in double the amount of the rent claimed, payable to the landlord, with sufficient sureties, to be approved by the person making the levy, if the bond is tendered before the filing of a copy of the warrant, as provided in Part 3 of IX of this Act, or if after, by the clerk of the court in which the action is pending, conditioned to pay whatever judgment the landlord may recover in the action, with costs of the action. If the bond is taken before the filing of a copy of the distress warrant, such bond shall be filed therewith, and if taken after the filing of a copy of the distress warrant, it shall be filed in the office of the clerk of the court where the action is pending.
735 ILCS 5/9-311