SCHEMA-237. Added close/releaseIfNotNull to ResourceUtils.