When the condition of the recognizance has been satisfied or the forfeiture thereof has been set aside or remitted, the court shall exonerate the obligors and release any bail. A surety may be exonerated by a deposit of cash in the amount of the recognizance or by a timely surrender of the defendant into custody.