Thomas W. Gallo, 35, of McHenry

A McHenry man has been sentenced to 90 days in jail and anger management counseling after he slammed a door shut on an officer’s foot and allegedly battered the officer in Woodstock.

Thomas W. Gallo, 35, of the 4000 block of West Kane Avenue in McHenry, was charged with two counts of aggravated battery on a peace officer, a Class 2 felony.

A criminal complaint filed in McHenry County Circuit Court alleges Gallo shoved a Woodstock police officer backward with his forearm on August 1.

Gallo then intentionally slammed a door on the officer’s foot, a grand jury indictment said.

Court documents show the officer was attempting to investigate a domestic disturbance complaint at an apartment when the battery occurred.

Gallo entered into a negotiated plea deal with the McHenry County State’s Attorney’s Office this week.

He pleaded guilty to one amended count of resisting a peace officer, a Class A misdemeanor.

[Suggested Article]  14-year-old stabbed during possible attempted robbery near Waukegan High School

In exchange, prosecutors dismissed both of Gallo’s felony charges.

McHenry County Judge Robert Wilbrandt approved the plea deal and sentenced Gallo to 90 days in the McHenry County Jail with day-for-day credit and 16 days of time served credit.

Gallo will serve 29 days in the jail and is scheduled to be released on July 28.

Wilbrandt ordered Gallo to undergo anger management counseling and two years of probation.

Gallo will also have to pay $1,764 in court fines and fees.