Handler told her audience that after "seven years of ridiculous stupidity," she's "very impressed" with herself.
Aniston, Bullock and actress Mary McCormack stopped by to stage a fake intervention with their friend. McCormack joked that Handler's move to Netflix (where she'll do a stand-up special and later a talk show) is a euphemism for rehab -- "Netflix is a wonderful facility that will give you all the help you need," she said -- while Aniston accused her of copying everything she does and Bullock read a letter that started with "Dear George" before adding, "Oh sorry, I copy and pasted this format from my Clooney intervention."
There was another sketch where DeGeneres confronts a nude Handler in the shower and demands to know why she was never invited on her show. Handler balks and tries to smooth things over by joking that she's a lesbian too.
Handler's ex-boyfriend 50 Cent appeared to perform, as did Cyrus, and the show concluded with a sing-along from a host of famous faces including Gwen Stefani, Fergie, Josh Gad, Tim Gunn, Dave Grohl, Avril Lavigne, Gerard Butler and LeAnn Rimes.
"Goodbye to E! It's time to move on," they sang. "She wants to sing. She wants to dance and get her groove on."
At the end, Handler thanked "everybody who works on the show, the crew and the sound people who have to deal with my bad moods and my good moods and the bad people I dated and the good people I dated."
"I'll see you on Netflix!" she shouted to the crowd.