More details are emerging about DJ AM's final days. The New York Post reports that "just hours" before the well-liked record spinner (real name: Adam Goldstein) was found dead in his New York apartment, he had agreed to check into rehab.
RELATED: See more photos of DJ AM
According to the paper, the deejay, who died on Aug. 28 at the age of 36, had recently been "missing appointments and acting erratically," leading to fears that he had relapsed after several years of apparent sobriety.
Goldstein's inner circle grew so worried that his manager and his AA sponsor flew from Los Angeles to New York on Wednesday night to see him.
When they showed up at his apartment on Thursday morning, an "agitated" AM would only allow his sponsor to enter, and he "lit up a crack pipe and popped pills in front of his horrified pal."
Friends reportedly told police that Goldstein had assured his team that he would seek treatment at a rehab facility in California as soon as he fulfilled his commitment to play a gig on Friday night at the Palms Casino Resort in Las Vegas.
But the deejay, who survived a deadly plane crash less than a year ago and was said to suffer from a crippling fear of flying, didn't make his flight to Vegas. His concerned traveling companions called the police, who entered his apartment and found his body. A crack pipe and prescription pills were also purportedly discovered inside.
Toxicology tests are still being conducted, with the initial autopsy deemed inconclusive.
When asked for comment on the paper's report, AM's rep told People magazine, "As soon as his friends, representation and his AA sponsor learned that he relapsed, which was only a couple days before he passed away, they sprung into action to try and get him to agree to go to rehab."
Goldstein had been working with MTV on an upcoming drug intervention reality show called "Gone Too Far." The fate of the series has yet to be determined.
RELATED: Follow Wonderwall on Twitter
Channing Tatum, Joe Manganiello and co-stars dish on being naked and wearing thongs on the set of "Magic Mike XXL" with Wonderwall.com's Kirby Kristen.Watch Video »
Check out Val Chmerkovskiy, Ian Somerhalder and more shirtless stars on Instagram on today's Celebs Gone Social.Watch Video »
Channing Tatum, Jada Pinkett Smith and Stephen "tWitch" Boss dish on what their spouses really think of their steamy "Magic Mike XXL" roles.Watch Video »
Joe Manganiello, Matt Bomer and co-stars dish on the horrors of waxing and spray tanning for their roles in "Magic Mike XXL."Watch Video »
Get all the scoop on "The Bachelorette" on Replay hosted by Wonderwall's Kirby Kristen.Watch Video »
From Kate Hudson to Tyra Banks, check out these gorgeous stars sans makeup!Watch Video »
From Crowd Ignite