connection should raise OperationalError when socket.error.