- invoking error callback only once on parser errors
- invoking error callback after disconnect callback on parser errors