diff --git a/OpenRA.Server/Program.cs b/OpenRA.Server/Program.cs index 2f76d0d0ed..a47de057ae 100644 --- a/OpenRA.Server/Program.cs +++ b/OpenRA.Server/Program.cs @@ -27,8 +27,10 @@ namespace OpenRA.Server { Run(args); } - catch + catch (Exception e) { + ExceptionHandler.HandleFatalError(e); + // Flush logs before rethrowing, i.e. allowing the exception to go unhandled. // try-finally won't work - an unhandled exception kills our process without running the finally block! Log.Dispose();