Beefed up the logging and error handling in the ancestry builder