Reslove #4 reinitialize thread for restart