/// <summary> Method which will be call in case of thread exception </summary> /// <param name="exception"> Internal thread exception </param> public void UnexpectedTerminationProc(Exception exception) { Guard.NotNull(exception, $"{nameof(exception)}"); _threadManager.InterruptAllParallelExecutingThreads(); Console.WriteLine(exception.Message); EnvironmentControl.Current.Exit(0); }