A 5-star nursing home and pharmacy will pay almost $13 million to the estate of a former resident who died after failing to receive antibiotics for an infection.

The resident received antibiotics from a hospital stay two weeks before he moved into Masonic Homes of Kentucky, where he was supposed to take four more weeks worth of medication from Med Care Pharmacy.

However, according to a lawsuit filed on behalf of the deceased’s estate, he never received a single dose of antibiotics — despite staff documenting him receiving the needed medication twice daily. The infection returned and the resident died in April 2013, 24 days after he moved into the facility, according to a report in the Louisville Courier Journal. The deceased, Dan Schneider, had been a judge in various local jurisdictions for 20 years.

Masonic Homes will pay $11 million and Med Care Pharmacy will pay $1.9 million to Schneider’s wife and two sons, according to terms of the settlement announced the day before a trial was to begin last week.

The facility called the situation an “isolated” incident in a statement and said it hopes “the settlement and resolution will bring solace to the family.”

“We reviewed then and continually evaluate every aspect of our services to prevent something like this from happening,” said Nicole Candler, chief marketing officer for Masonic Homes of Kentucky. “Although the settlement amount was substantial, we will continue providing outstanding daily living and specialized services throughout the continuum of care.”