Refactor to use IOUtils.closeQuietly() which handles nulls and streams that are already closed.
View differences
Refactor to use IOUtils.closeQuietly() which handles nulls and streams that are already closed.