Add model to track and send errors

Fixed