Here's an implementation of closeQuietly based Commons IO. It's pretty much an exact dup.