SCHEMA-168. Propagate ResourceUtils.closeOrLog/releaseOrLog.

Over-the-should-review: Robert Chu
Signed-off-by: Christophe Taton <taton@wibidata.com>