Merge "Save results and logs even when invocation fails." into nyc-dev