ROCKLAND, Maine — A 31-year-old Waldoboro man who attempted but failed to rob a bank in Union last year is serving a six-month jail sentence.

Joseph M. Lewis was sentenced by Justice Jeffrey Hjelm in Knox County Superior Court to five years in jail with all but six months suspended. Lewis will also be on probation for two years.

Lewis had told police that he was pressured by not being able to pay bills and decided to rob the Damariscotta Bank & Trust branch in Union on Nov. 21. But things fell apart when he got there a few minutes before closing time and tripped in the parking lot. He then hesitated when he realized he had not pulled down a mask over his face.

By the time, he had gotten to the door, the employees had locked it and called police.

Lewis left in his car but was stopped by police on the Union Common near Camden National Bank’s branch.

A search of the car revealed a BB gun under a seat, although Lewis said he was not carrying the weapon when he tried to enter the bank, according to police reports filed at the time.