Only clean up the working directory of a task if it was actually run.
Allow the user to resume a workflow automatically.

The user may now resume the workflow from the latest checkpoint for
which the generated files are present on shared storage.