Retry if network fails

When theres a slight network failure or timeout, dld freezes. This causes here 100% failure when trying to download big files and requires manual kill and restart to continue.