Handle Docker image build failures.