internal static void ValidateEnd(Task task) { if (task.Status != TaskStatus.RanToCompletion) { TaskAwaiter.HandleNonSuccess(task); } }