LOS ANGELES (AP) — A licensed drug addiction counselor who delivered Matthew Perry the doses of ketamine that killed him, and later became a key informant in the investigation, was sentenced Wednesday to two years in prison.

At a federal court in Los Angeles, Judge Sherilyn Peace Garnett handed down the sentence to 56-year-old Erik Fleming for his role in the death of the “Friends” star.

“It’s truly a nightmare I can’t wake up from,” Fleming said in a deep, somber voice from the podium before his sentencing. “I’m haunted by the mistakes I made.”

The judge ordered Fleming, who has been free on bond, to turn himself in to serve his term in 45 days. He was also sentenced to three years of probation.

Fleming was the fourth defendant sentenced of the five who have pleaded guilty in prosecutions over the actor’s 2023 death in the Jacuzzi at his Los Angeles home. Fleming connected Perry to Jasveen Sangha, the convicted drug who prosecutors called “The Ketamine Queen.” He delivered drugs from her house to Perry’s, and marked them up to make a profit.