Use endDocument() to close OsmSaxWriter in OsmoseErrorFile