Autoexit a dedicated server on critical error?

Hi,

I am building a dedicated server (MP clients would connect over the network).

I have custom log function that manages log level of each call to it along with the severity of the issue (datatable lookup of error codes).

Where a severe issue is being logged I would like the dedicated server to shutdown rather than continue. How would I manage that.

The calling event (event init) is in the GameInstance Event Graph (GI.EG) along with the functions (connect to DB, load config files, log error etc).

I have tried using quit game in the error logging function but it just goes over that and returns to the GI.EG and continues.

How to get the dedicated server to halt and exit on a severe error ?.

Thanks.