KIJIMRLIB-29. Fix resource leak in integration test

issue: https://jira.kiji.org/browse/KIJIMRLIB-29
review: https://review.kiji.org/r/1858