CHICAGO -- After spending most of his adult life behind bars, 73-year-old Walter Unbehaun decided to rob another bank in hopes of getting caught. He felt more comfortable in prison, court documents allege, and wanted to spend his final years there.

So the balding, gray-haired South Carolina man leaned on a cane as he walked into a bank in suburban Chicago over the weekend and used a novel stickup line: He had just six months to live, so he had nothing left to lose, according to a federal complaint citing his post-arrest interrogation.

Unbehaun also allegedly lifted his coat to show a teller a silver revolver shoved into his waistband.

Investigators say Unbehaun, of Rock Hill, S.C., walked out of the Harris Bank in Niles on Saturday with $4,178 in his pockets. He wore no disguises, so law enforcement quickly tracked him down using surveillance-camera photos of him holding up the bank, the complaint said.

When authorities stopped Unbehaun on Sunday outside a motel room where he was staying, he immediately threw down his cane and surrendered, saying he knew they were there because he robbed a bank the day before, according to the complaint filed in U.S. District Court in Chicago.

Unbehaun told investigators hours after his arrest that he had spent most of his adult life in prison and "felt more comfortable in prison than out."

"He wanted to do something that would guarantee that he would spend the rest of his life in prison, and he knew that robbing a bank with a loaded gun would accomplish that," according to the complaint, signed by FBI agent Chad Piontek.

Contacted on Tuesday, Unbehaun's defense attorney, Richard McLeese, declined comment.

Unbehaun's most recent stint behind bars ended in 2011, when he was released after serving 10 years for a 1998 bank robbery. His Illinois record alone includes multiple other felonies dating back decades.

Unbehaun made an initial court appearance Monday in Chicago and was ordered to remain in jail pending further court procedures. No additional hearing dates were set.

If he is eventually convicted on the new bank robbery charge, he could be sent to prison for up to 20 years.

___

Follow Michael Tarm at http://www.twitter.com/mtarm

Also on HuffPost:

Loading Slideshow...
  • Stretchy Pants Bandit

    Leonard Brown, Jr. is accused of robbing a Ceres, Calif. Ban of America in late September, 2012. He has been dubbed the "Stretchy Pants Bandit" by police.

  • These surveillance photos provided by the Federal Bureau of Investigation's St. Louis Division shows a serial bank robber dubbed the Bucket List Bandit on, from left: June 21, June 27 and July 6, 2012. The FBI is using digital billboards around the country in the search for the man who is suspected of robberies in Missouri, Colorado, Arizona, Idaho, Utah, North Carolina, Tennessee and Illinois. He earned his nickname after he passed a note in one of the robberies claiming he had a short time to live. (AP Photo/FBI)

  • In this undated surveillance video frame grab released by the FBI showing a bank robber dubbed the "Plain Jane Bandit". The FBI says a Southern California bank robber dubbed the "Plain Jane Bandit" has struck again. The latest heist was Monday July 30,2012 at a Bank of America branch in Downey, Calif. Since July 12, the robber has hit seven banks. (AP Photo/FBI)

  • EDS NOTE: IMAGE WAS ALTERED BY SOURCE - This surveillance image provided by the King County Sheriff's Office shows a man armed with an assault rifle grabbing money while robbing a Chase bank in North Bend, Wash., on July 6, 2012. The FBI says the man is the same suspect who robbed a bank Feb. 29, 2012 in Chino, Calif., during which the robber shot and wounded a police officer., and a March 12 bank robbery in Vacaville, Calif. He is known as the "AK-47 bandit" because he brandished an AK-style assault rifle during the three robberies to which he's linked. (AP Photo/King County Sheriff's Office)

  • Colton Harris-Moore

    FILE - In this Dec. 16, 2011, file photo, Colton Harris-Moore, also known as the "Barefoot Bandit," appears at the Island County Superior Court, in Coupeville, Wash. Harris-Moore, who led police on a two-year crime spree in stolen boats, cars and planes, has been moved out of solitary confinement and into the general inmate population at another prison in Washington state, corrections officials confirmed Thursday, May 3, 2012. (AP Photo/Ted S. Warren, File)

  • This July 15, 2010 security photo provided by the New York Police Department on Monday, July 19, 2010 shows a man police say robbed a bank armed with a bouquet of fresh flowers, in New York. Police say he reached into the arrangement and pulled out a note demanding $100 and $50 bills and warned, "Don't be a hero." He was given an undisclosed amount of cash before fleeing the Bank of Smithtown in the Chelsea neighborhood of Manhattan. (AP Photo/NYPD)

  • In Australia, 'Buxom Bandit' Allegedly Commits Rookie Robbery

    Police in Queensland, Australia are searching for a man and woman accused of holding up a gas station with a knife.

  • Geezer Bandit

    FILE - This Monday, June 7, 2010 file photo provided by the FBI shows a suspect identified as the "Geezer Bandit" robbing a USA Bank branch in Poway, Calif. Authorities say the robber branded "The Geezer Bandit" because he appeared to be old might actually be wearing a mask. FBI spokeswoman Laura Eimiller said Friday the man was seen sprinting across a parking lot after his most recent holdup this month. (AP Photo/FBI)