Tails takes care of this problem but there are other solutions as well. I think isolation of the working environment from Tor and external IP address is an even better solution. And then there are things like Qubes that let you automatically open files in untrusted virtual machines without internet access.