Added some instrumentation when the build fails and execution is aborted.