Fix config format and exception catcher.