GREENSBURG (AP) — A former Pennsylvania Department of Public Welfare caseworker will spend five to 10 years in state prison for firing 17 shots at state troopers who surrounded his house after he allegedly refused to come out when they responded to a drunken domestic dispute last fall.

Defense attorney Brian Aston said the actions of Daniel Lee Ryan, 45, actions that night were an anomaly brought on by work-related stress and marital problems. Aston says Ryan had never before been in trouble with the law when police were called to his home late Oct. 11.

Nobody was hurt during the nearly three-hour siege, though police had to shut down Route 66 near Ryan’s Hempfield Township home because of concerns about the gunfire.

Ryan was sentenced Friday after pleading guilty to aggravated assault and other charges.