using System;
using System.Threading;
public class Program
{
public static void Main()
var t = new Thread(() =>
throw new Exception("some value");
});
t.IsBackground = true;
t.Start();
t.Join();
Thread.Sleep(1000);
}