[JBERET-28] Close ItemReader and ItemWriter if an exception occurs during processing.