Add an error report handler inside scxml if we want to send custom
errors