Recursively retrying to download a file if socket error. Else not. Also sleeping between each setup, when a socket.error is raised.