Resolve #4 reinitialize thread for restart