Tidy up code to report failures to load config in the UI.