[NEXUS-6015] Replace some more commons-io IOUtils.closeQuitely with try-with-resources

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>