Use thread.alive? instead of thread.stop?