`AvroWriter` can now be used as a context manager.