config-soft-fail
main
By calling JSON.parse before setting everything to undefined, we don't lose the old config in case of an error.