27-16-505. Other circumstances in which sureties exonerated. The bail must also be exonerated by the death of the defendant, the defendant's imprisonment in the state prison, or the defendant's legal discharge from the obligation to render the defendant amenable to the process.