Join after killing the thread in worker.