main thread exits when done. currentl just checking for the done tvar in torrent