Test/Debug code. Something in windows seems to not let go of the file descriptor. This function will try to delete the temp torrent file N times, in our test I mae it so it tried 5 times, waiting 1 sec between each try. Gotta read how the magnet downloader works, or somehow find out what's keeping the file open. maybe when data is read its not properly closing the input stream?
conflict merged, deleteOnExit