BARRE, Vt. — A Vermont woman who shot and killed a state social worker and three of her own relatives as revenge for losing custody of her then 9-year-old daughter was sentenced Wednesday to life without parole.

Vermont Superior Court Judge John Pacht announced the sentence at the end of a three-day hearing for Jody Herring, 43.

Herring shot and killed Lara Sobel, a social worker as she was leaving work at the state’s Department for Children and Families in Barre on Aug. 7, 2015. Police later discovered that she also had killed her two cousins, sisters Rhonda and Regina Herring, and an aunt, Julie Falzarano, in their Berlin home.

The shootings rattled the small state, which has been among the safest states in the country, and led to fears among social workers, threats against them and changes in security measures at state office buildings.

“The case had consequences far beyond the severe damage it has done to the four individuals who were killed and their extended families,” said Matthew Levine, an assistant state attorney general who helped prosecute the case.

“By targeting Lara Sobel as a DCF worker at her place of employment, she was really assaulting the justice system as a whole,” he said.

Relatives of those killed spoke of how the murders ripped their lives and families apart.

Randy Herring, who lost his two sisters and mother, said doctors have told him he has depression and post-traumatic stress disorder.

“My wife told me that she lost her husband because I can no longer feel happiness,” he said.

Herring pleaded guilty in July to three counts of second-degree murder and one count of first-degree murder. Prosecutors say she has shown no remorse.

Herring’s attorney, David Sleigh, had asked the judge for leniency because Herring has suffered a lifetime of abuse and had reached out unsuccessfully to state officials for help.

Levine said the evidence didn’t support Sleigh’s argument.

“The reality is that childhood abuse, substance abuse, mental health problems are all too common in our society, and while we should do everything we can to combat them, they don’t and shouldn’t justify, excuse or mitigate a planned brutal, savage, multiple murder,” he said.

Herring spoke in court, saying she understands how it feels to lose a child because she has lost custody of three children.

“I’m very sorry. I can’t take back that day,” Herring said.