`ensure_clean` will try to unlink the file on `__exit__`. This will not detect open files on linux but on windows it will fail. Not the best test but it seems to work :) let me know if you have a better idea!