change TorrentServer to terminate