Come on now. Surely resuming a partial download is a solved problem in this day and age?
And, uh, it happened twice... Finally, at my third attempt I was able to download the whole thing after deactivating automatically sleep mode. As soon as it finished, an error was shown and so the file was lost again.