thread exits after torrent doen