check @main_th before @main_th.alive?