Utility to to checkpoint/restore tasks