A 74-year-old former inmate has gotten what he said he wanted when he robbed a suburban Chicago bank last year: To go back to the place he called home — prison.

A federal judge in Chicago sentenced Walter Unbehaunhim to three-and-a-half years in prison on Thursday. He'd pleaded guilty to robbing the bank, saying he planned to get caught so he could go back to prison.

Unbehaun held a cane as he limped up to a podium to make a brief statement. He didn't withdraw his desire to go to prison. But he told the judge, "I don't want to die in prison."

Defence attorney Richard McLeese had called the case of someone who wanted to go to prison the "saddest and most disturbing" of his career.

Unbehaun, a high-school dropout and part-time bathtub repairman, probably isn't the first long-term convict to find he prefers being barked at by guards to life on the outside, which has its own demands.

But living alone and feeling unhappy, Unbehaun decided to change his situation by committing a crime in order to get caught.

'What we do know, clearly, is Mr. Unbehaun lacks the desire to lead a law-abiding life outside of prison walls.'- Sharon Fairly, prosecutor

On Feb. 9 of last year, he entered a Chicago-area bank with a cane but no disguise, displayed a revolver in his waistband to a teller and told her softly over and over, "I don't want to hurt you." With $4,178 US in loot, he then drove to a nearby motel and waited for police to arrive.

Confronted by authorities in the motel parking lot, the bald, portly Unbehaun dropped his cane, raised his hands and startled police by his apparent joy at getting nabbed, according to detailed court filings by both his attorney and the lead prosecutor in his case.

Judge faces dilemma

"Unbehaun stated he wanted to do something that would guarantee that he would spend the rest of his life in prison," an FBI affidavit said. "He knew robbing a bank with a loaded gun would accomplish that." One officer observed, "(He) was happy to be going home to prison."

Prosecutor Sharon Fairly pointed out a dilemna for the judge in one court filing: Sending Unbehaun to prison would be more of a reward than a punishment for him, but setting him free would risk him trying to commit another crime.

"Did the system fail Mr. Unbehaun? Or was his inability to stay out of jail the result of his own free will?" Fairly asked. "We may never know. But what we do know, clearly, is Mr. Unbehaun lacks the desire to lead a law-abiding life outside of prison walls."

Even if his age and infirmity might seem to invite leniency, that "is arguably offset by his lengthy and violent criminal history," Fairly said.

Imprisoned at 23

She didn't point out that keeping Unbehaun in prison would cost taxpayers. On the other hand, setting him free could send the wrong message to other would-be bank robbers.

Unbehaun first went to prison at age 23 for transporting a stolen car, and his criminal record includes more than half a dozen convictions for everything from home invasion to — ironically — escaping from prison.

Media accounts from 1970 describe how Unbehaun kidnapped a 19-year-old girl and left her bound to an Ohio motel bed as fled the state in her car. For that, he was convicted of kidnapping and sentenced to 25 years. His most recent decade-long prison term, which was for a bank robbery, ended in 2011.

Unbehaun pleaded guilty in September to the 2013 bank robbery and faces a maximum 30-year prison term. Prosecutors asked for a sentence of about seven years.

'We tried to help him and do as much as we could, but it didn't work out.'- Darlene Kellner, sister

In his presentencing filing, defence attorney Richard McLeese called on the judge to show Unbehaun mercy.

"An individual driven to commit bank robbery so that he can return to prison is, we submit, less culpable than someone who acts simply out of greed," McLeese said. A three year sentence, he argued, would be appropriate.

Unbehaun was divorced twice and his third wife died. But it's not as if no one extended the childless widower a helping hand. Following his 2011 release, his sister and her husband bought Unbehuan a trailer home, the couple said Wednesday.

Bored and lonely, Unbehaun spent his days watching television or drawing, and in a court filing he compared his life at the trailer park to living in a prison isolation "hole."

"We tried to help him and do as much as we could, but it didn't work out," Unbehaun's sister, Darlene Kellner, said in a phone interview from South Carolina. "It is a sad story."