Improve error on failed config, improve logging