Restart the thread.