[NEXUS-6015] Replace Closeables.closeQuietly with try-with-resources

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-6015] Replace Closeables.closeQuietly with try-with-resources

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