He could say he was a double-double agent and an Autobot all along. He infiltrated Decepticon ranks so he could re-infiltrate Autobot Ranks so he could get Megatron to Cybertron and ambush him. Leading to the capture of Megatron and the retrieval of the All Spark...or something