Download into .part files and rename them when completed.
Add a test to ensure the .part file is removed.