Reassign shapefile writer object after writing record