Fix the issuse #6
Detached thread resource recycling bug, the detached thread unsafely exit bug