Cleaning up task_region