Comey planned on Mueller using his (Comey's) firing as an obstruction charge to get Trump impeached, thereby saving all their asses. Apparently, he wasn't informed that Trump had Mueller by the balls for his past (which Trump informed Mueller of in the pre-SC meeting)
At least, that's how I'm seeing things.