Improve handling of crashes when loading invalid configs. Close #107.