closeQuietly() silently swallows errors during close().
In production, this is not acceptable as you might lose data : at the very minimum, you should have a log trace (use ResourceUtils.closeOrLog() for that).
In tests, close() failure are errors and should not be ignored : we should let them surface and lead tests to fail.