46-9-510. Surrender of defendant. (1) At any time before the forfeiture of bail or within 90 days after forfeiture:
(a) the defendant may surrender to the court or any peace officer of this state; or
(b) the surety company may arrest the defendant and surrender the defendant to the court, any peace officer, or any detention center facility of this state.
(2) The peace officer or detention center facility shall detain the defendant in custody as upon commitment and shall file a certificate, acknowledging the surrender, in the court having jurisdiction of the defendant. The court shall then order the bail exonerated.