Add a signal listener to catch Math Processing and TeX parsing errors.