try to catch non-zero return from build.