Checkpointing for computer switch