Fix mistakes for torrent download and cleanup