It depends whether the jailing and imprisonment is arbitrary or for cause. Any attempt of mounting an insurrection, however harebrained, 100% qualifies as valid reason for a lifetime sentence.
Fwiw, Hillary Clinton did sabotage the Democratic party, burning the chances of Bernie Sanders, but that's very different from trying to overthrow an election by force.