cec: fixed return value of StopThread()