Yeah, the ending wasn't cop-out and not at all analogous to the "Emperor having a day dream" thing posted above.
Just because the filmmakers felt beholden to the source material (and maybe, contractually speaking, they were; who knows) doesn't mean the ending twist wasn't a copout.
I have absolutely no interest in Twilight, movies or novels, but from what Trekker
described I have to give them credit for actually a really well done twist. How is it a copout?