libhaunp: fixed resed bug; don't call reader callback after error/EOF