void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Console.WriteLine("An an unhandled exception occurred at the remote AppDomain hosted at " + AppDomain.CurrentDomain.BaseDirectory);
Console.WriteLine(e.ExceptionObject.ToString());
}