We know Ahsoka Tano is on board. She's been marked for termination by Order 66. Under this directive, any and all Jedi leadership must be executed for treason against the Republic. Any soldier who does not comply with the order will also be executed for treason. Understood?
[laughs madly] Brilliant. Brilliant! [chuckles] I was not privy to my master's plan, but now, now I see it. He turned the Jedi's own army against them.
I hate to tell you this, but they don't care! This ship is going down and those soldiers-- my brothers-- are willing to die and take you and me along with them!
[Ahsoka pauses, then she removes Rex's helmet. Rex sheds a single tear.]
[After thinking for a moment] Commander Rex, you're in violation of Order 66. I accuse you of treason against the Grand Army of the Republic. You'll be demoted in rank from Commander and subject to execution along with the traitor, Ahsoka Tano.