handle build failure.