make use of commons-io IOUtils.closeQuietly() consistently instead of other handling logic.