mstask: Implement ITask::GetExitCode().