A surety on a bond in a recognizance may, after default, pay into the court from which the process has issued, or may issue thereon, the amount for which he is bound, with such costs as the court may direct, and be thereupon discharged.
Va. Code § 19.2-148