Delete task only when the downloading is successful.
Delete stop sentinel file at the end of the execution.