Added finalize to lines points polygons files.