Added error listener that will halt execution when input can't be parsed, in addition to ambiguous input.