Save and restore task completion