using System.Threading.Tasks;
public static void Main()
Task t = new Task(() => {
Task failure = t.ContinueWith((task, args) => {
if (task.Status != TaskStatus.Faulted)
Console.WriteLine("I do not understand how this is being reached");
Console.WriteLine("this is my expectation, sometimes");
}, TaskContinuationOptions.OnlyOnFaulted);