Catch agent exceptions in smartonic