Make downloads fail better

* Time out requests to the download site after 10 seconds
* Clean up output file if download fails (e.g. timeout happens, URL is bad)
* Clean up output file if download is interrupted (Ctrl+C on the console etc.)

Fixes #22