Police respond to the Castlebrook Townhomes in the 600 block of West Liberty Street in Wauconda for a well-being check that turned into a standoff Tuesday morning. | Photo Submitted to Lake and McHenry County Scanner

A more than two-hour police standoff with a man who threatened to harm himself and others ended peacefully Tuesday in Wauconda, authorities said.

Wauconda Police Department Sgt. Heather Cognac told Lake and McHenry County Scanner that officers responded around 9:45 a.m. Tuesday to the 600 block of West Liberty Street in Wauconda for a well-being check.

A man had threatened to harm himself and others, and threatened to burn down the townhouses where he was at, Cognac said.

Family from out-of-state who received the concerning text messages called the police department.

The subject refused to answer the door when officers arrived.

Police respond to the Castlebrook Townhomes in the 600 block of West Liberty Street in Wauconda for a well-being check that turned into a standoff Tuesday morning. | Photo Submitted to Lake and McHenry County Scanner

Police blocked off entrances to the complex and evacuated four townhomes, Cognac said.

A command post was set up at the Advance Auto Parts nearby.

Cognac said a SWAT team was nearly requested as the standoff continued for more than two hours.

[Suggested Article]  Judge dismisses mother of AJ Freund's post-conviction petition, says it has no merit

The subject finally came out on his own after the police were able to persuade him. No one else was inside the townhome where the subject was.

Paramedics transported the man to a local hospital for an evaluation. Police cleared the scene by around noon.

Cognac said the department is unsure if any charges will be filed as the man remains hospitalized.