Config error handling
Fixes #10