27-16-501. Surrender of defendant. At any time before judgment or within 10 days after the judgment, the bail may surrender the defendant in their exoneration or the defendant may surrender to the sheriff of the county where the defendant was arrested.