@Override public void close() throws IOException { log.debug("close(" + currentId + ")"); try { if (currentId != null) { postProcess(); } } catch (FormatException e) { String m = "Error during process processing!"; log.error(m, e); throw new IOException(m); } finally { super.close(); } }