BOSTON (CBS) – A settlement has been reached in the lawsuit against a Canton school that used shock therapy on a severely disabled boy.

A Brooklyn family sued the Judge Rotenberg Center for malpractice, for using shock therapy on their son.

READ MORE: Police Search Woods After Man Fired BB Gun Behind Salem Walmart

The two sides reached a settlement while the jury was deliberating.

A lawyer for the center maintains the therapy can be useful to treat some patients.

READ MORE: Wellesley Man Killed In Ipswich Mountain Bike Crash

“This treatment is critically important for the people who can’t be effectively treated with everything else,” says attorney Michael Flammia. “The JRC treats the most difficult behavior disorders in the country. The toughest cases go to JRC.”

An attorney for the family says it wanted to expose what was happening at the center.

MORE NEWS: Massachusetts Reopening Plan: COVID Restrictions Loosen Monday, Including Restaurant Capacity

The terms of the settlement were not revealed.