be a bit more specific in catching exceptions when reading config