Switch Thread#stop to thread#terminate.