The next time James Rynerson gets out of jail, it’s fair to say that he and his wife might have a bit of talking to do.

Late last month Rynerson, 38, thought his luck was in and he was out. An identity mix-up led to him being incorrectly freed from Mesa County Jail, Colorado, where he was being held while awaiting trial on menacing, disorderly conduct and trespass charges.

Perhaps understandably, Rynerson took advantage of being freed in error to go home to his wife.

Perhaps surprisingly – for Rynerson – she did not share his joy at his new-found freedom and instead drove him straight back to jail.

She had her husband back behind bars less than two hours after he had been let out.

The Grand Junction Daily Sentinel reported that court documents have now revealed the chain of events that led to Rynerson being freed in error.

It began when he was temporarily joined in his cell by another inmate, Marvin March, 35.

UK prison conditions: in pictures Show all 8 1 /8 UK prison conditions: in pictures UK prison conditions: in pictures A cell covered in graffiti at HMP Liverpool. PA UK prison conditions: in pictures HMP Liverpool has some of the worst conditions inspectors have seen. HM Inspectorate of Prisons/PA UK prison conditions: in pictures A broken window in a cell at HMP Liverpool HM Inspectorate of Prisons/PA Wire UK prison conditions: in pictures A shower unit with protruding electric cable at HMP Liverpool HM Inspectorate of Prisons/PA UK prison conditions: in pictures Litter at HMP Liverpool HM Inspectorate of Prisons/PA Wire UK prison conditions: in pictures A wall damaged by damp at HMP Liverpool HM Inspectorate of Prisons/PA UK prison conditions: in pictures A pool table at HMP Liverpool HM Inspectorate of Prisons/PA UK prison conditions: in pictures A sign for HMP Liverpool, where drones are seized at a rate of more than one a week. The prisons watchdog flagged up the impact of the remote-controlled flying devices at HMP Liverpool. PA

March later moved out of Rynerson’s cell but the jail’s housing list was reportedly not immediately updated to reflect this. Which allegedly meant that when March was due for release, the warders went to Rynerson’s cell and took out the only person inside it: Rynerson.

It appears that jail staff did not check to see that they had got the man who should have been released: March.

The prison guards, it seems, only realised what had happened when March approached one of them and asked when he was going to be released.

Mesa County Sheriff's Sergeant Henry Stoffel has said that jail staff failed to follow correct procedure by omitting to check Rynerson's wristband and picture, and that an investigation is under way to determine whether prison policy around the housing list needs to be updated.

It was not immediately clear whether Rynerson knew he was being freed in error and decided against informing jail staff of their mistake, or whether he thought he was the beneficiary of an unexpected but genuine reprieve.

It has, however, been reported that in addition to the accusations of menacing, disorderly conduct and trespass, Rynerson now faces charges of escape, forgery and criminal impersonation.

Sgt Stoffel praised Mrs Rynerson for doing the right thing.