raise OperationalError when lost connection