Fix the case where in case of an exception, the run was marked as completed but not started.