thread could be killed by an exception