add error handler for line parser event emitter