refactor, stop torrent does not work