add CThread self shutdown ,
bug fix