Prevent any exception thrown when running a task to cause wf-runner going down.