Switching to use try-with-resources

The Closeables.closeQuietly(Closeable) method is no longer
present in v18. This change replaces usages with the
try-with-resource pattern.

This is part of the work to upgrade Guava to version 18.

Cherry-picked from commit dfff82913ea4201ecd983d40899e8459593f4495

BUG: 19672715
Change-Id: Id924d5db9e49c509e9a83c374411846305d23729
1 file changed