using System;
using System.Threading.Tasks;
public class Program
{
public static async Task Main()
await Task.Run(() => throw new Exception()).ContinueWith(_ => Console.WriteLine("Execute after exception"));
Console.WriteLine("Can do something");
}