[PATCH 10/12] mstask: Implement ITask::Terminate().