When in an action or on a motion to extend the period for enforcement of a judgment on a recognizance the penalty is adjudged to be forfeited the court may on an application of a defendant or juvenile remit the penalty or any part of it and render judgment on such terms and conditions as it deems reasonable.
Va. Code § 19.2-145