Handle exceptions during config file parsing

Handle uncaught exceptions during config file parsing
Merge pull request #8818 from Erethon/devel

Handle exceptions during config file parsing