close the checkpoint file before moving it