JBERET-118 Chunk ItemWriter should be closed before ItemReader