PrintStream logger = listener.getLogger();
logger.println(e.getMessage());
logger.println(ExceptionUtils.getStackTrace(e));
Executor x = Executor.currentExecutor();
x.recordCauseOfInterruption(DynamicBuild.this, listener);
x.doStop();
return Result.FAILURE;
} finally {
if (buildEnvironment.tearDownBuildEnvironments(listener)) {
return Result.FAILURE;
}