The court may dismiss the complaint or affirm the judgment, and make what order it sees fit as to the costs. If it award costs against the appellant, the recognizance which he may have given shall stand as security therefor. When there is a failure to prosecute the appeal, such recognizance shall remain in force, although there be no order of affirmance. On any appeal the court may require of the appellant a new recognizance if it see fit.
Any person committed to jail under this chapter may be discharged by the circuit court of the county or city on such terms as it may deem reasonable.
Va. Code § 19.2-25