If a jury is discharged or prevented from giving a verdict because of accident, disagreement, or other cause, the case may be again tried at the same or another term, unless the defendant is discharged during the trial or after the case has been submitted to the jury.