stop the working thread is a so complexy task!