DRACUT, Mass. – A disgruntled former English teacher was arrested outside of his former work place for violating a restraining order banning him from the high school.

Former Dracut High School teacher Robert Moulton was fired in October 2013 for “conduct unbecoming of a teacher” for twice reading a vulgar essay to students that he authored, The Valley Dispatch reports.

Moulton appealed the termination and last week an independent arbitrator upheld the firing, which apparently compelled the former teacher to go to the high school Thursday wearing a backpack to pound on the building’s windows and doors demanding to be let in. The teacher’s conduct was reportedly aimed at getting arrested to bring attention to what he believes is wrongful termination, according to media reports.

MORE NEWS: Know These Before Moving From Cyprus To The UK

“He was screaming something to the effect of, ‘I’m not leaving until I’m arrested!’ And he continued to check various doors, but all were locked,” deputy police chief David Chartrand told the Dispatch.

District Superintendent Steve Stone ordered the high school put into lockdown when Moulton arrived.

“When you get a call like that based on a person you have already received a restraining order for – that’s always a concern,” Stone told WCVB.

“A series of comments and threats had been made by him, not against any students of the school system, but, against employees of the school system,” Stone told Fox.

Chartrand said Moulton’s antics and resulting lockdown made students and staff fear for their safety.

“For someone who presents himself as possessing ‘educational virtue,’ to do something like this, I think is a reflection of his true character,” he told the Dispatch. “To intentionally disrupt the learning process today, as he did, placing the staff and students in fear like he did, was nothing more than a selfish act.”

Chartrand said Moulton wanted to be arrested, and he wasn’t interested in posting the $40 bail.

MORE NEWS: How to prepare for face-to-face classes

“During the booking process at the Dracut Police Department, Moulton commented to a sergeant that, ‘if he was released from court, he’d go directly back to Dracut High School and be arrested again,’ said Chartrand, quoting the suspect. ‘He stated it was his intended plan to continue this process again and again, until the people of Dracut knew the truth,’” according to the Dispatch.

Police searched Moulton’s backpack, as well as his vehicle that was parked a short distance away, and found nothing dangerous.

Moulton’s wife contacted WCVB to explain what her husband was up to.

“He was bringing a letter to school to Commissioner Mitchell Chester regarding the state of education,” Camille Moulton said. “He feels an injustice has been done, and we wanted to bring light of it.”

She told the news station that Moulton’s readings to students were explicit, but did not warrant termination.

Moulton was charged with trespassing after notice, disrupting a school assembly, and disturbing the peace, according to the Dispatch.

Several students responded to Tweets from Dispatch reporter John Collins on the developments last week.

“Mr. Moulton is the greatest teacher and among the best people I know, BUT he needs to follow the law and get some help. Kills me to see this,” Makenna tweeted.

“My heart aches for Mr. Moulton, who must be going through a tremendously difficult time,” Stephanie Epstein tweeted. “Dracut has literally crucified the poor guy.”

Moulton was arraigned Friday and was released on his own recognizance, and promised not to go back to the high school, necn.com reports.

“I will not go back until they invite me. Which will happen very soon, when the truth is known,” he said.

Moulton also likened himself to Jesus and Gandhi when speaking to reporters.

“Simply to be arrested, to draw attention to, it’s an act of civil disobedience,” he said, according to necn. “I have a long line of precedent, including Martin Luther King, Henry David Thoreau, Gandhi, Jesus, Socrates. These people were all arrested for good cause.”