The keeper of a jail shall safely keep a prisoner committed to his or her custody until discharged from imprisonment.