Catch socket.error exceptions when downloading, too