Error trapping for dodgy config files

capturing a bit more when the config fails to load.