diff --git a/src/rasterstats/cli.py b/src/rasterstats/cli.py
index <HASH>..<HASH> 100644
--- a/src/rasterstats/cli.py
+++ b/src/rasterstats/cli.py
@@ -71,7 +71,6 @@ def zonalstats(input_geojson, raster, output_geojson, all_touched, band, categor
 
     output_geojson.write(json.dumps(feature_collection, indent=indent))
     output_geojson.write("\n")
-    output_geojson.close()
 
 
 if __name__ == '__main__':
click handles the file close, no need to do it explicitly