SCHEMA-168. Propagate ResourceUtils.closeOrLog/releaseOrLog.

over-the-shoulder-review: Christophe Taton
Signed-off-by: Robert Chu <robert@wibidata.com>