public static bool IsFatal(this Exception exc) { return exc != null && (exc is StackOverflowException || exc is ThreadAbortException || exc is OutOfMemoryException || exc is ExecutionEngineException || exc is ArgumentException); }