Avro: fix 'resource leak'