Added an error handling agent