added exception handling for osm file reading