Extract callback for when the parser fails