Retry on socket.error