Added detection of a build gone wrong