Ahsoka expertly handled the betrayal when Palpatine executed Order 66. She fought off the attacking clone troopers and managed to remove the inhibitor chip from Rex’s head.