So as I read this: He knew he would lose the (R) primary so he switched parties. He could have at least had the cajones to follow Lieberman - fight the fight, and if you lose the primary run as an independant.
I've heard from somebody that in PA if you lose a primary you cannot go on the ballot as an independent, which may have been his motivating factor.