Use ResourceUtils.closeOrLog() instead