Add model to track and send errors

name should be just the message.
What's this ex.name ?