add exit() when loading config failed