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.

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.