Use tempfile when downloading a file URL
Bugfix with tempfile
No fail if proxy is not accessible