Clean-up the TaskContext API.