`writer.close()`  not necessary?