REST-132. Add a task to close instances and tables

issue: https://jira.kiji.org/browse/REST-132
review: https://review.kiji.org/r/1915