Add StreamUtil.closeOnEnd.