Try to download a file a maximum of 3 times before erroring out.