static int Main(string[] args)
{
if (Debugger.IsAttached || args.Contains("--just-die"))
return (int)Run(args);
AppDomain.CurrentDomain.UnhandledException += (_, e) => FatalError((Exception)e.ExceptionObject);
try
{
return (int)Run(args);
}
catch (Exception e)
{
FatalError(e);
return (int)RunStatus.Error;
}
}