Clean up early termination due to core things not configured, or server not starting correctly.
Add exception handling so we log errors to the logging system once it is configured.