Given the way that Shatner walked off together with Palin, I don't think it was a surprise.

Shatner could do it all spontaneously, but I don't think they'd have allowed Palin onstage without rehearsing her.