wrap in try/finally/Utils.closeQuietly