Put saving in a long-running task.