Lee could have rationalized it any way he wanted and so can you. The fact remains he did take up arms against the duly elected government and only out of political expediency was he spared the noose.
As I so ably demonstrated, the “duly elected government” in his state was not the one that Lincoln headed.
No rationalization needed.