add error handling to live examples