@Override public void close() throws IOException { flush(); closed = true; codec.close(); resetAndClearRefs(); conf.returnObject(objects); }