Pull write of GeoJSON head out of the try block.