SCHEMA-656. Add a shutdown hook to check for unrelease resources

issue: https://jira.kiji.org/browse/SCHEMA-656
review: https://review.kiji.org/r/1648