correct output saving

* save outputs only after build succeeds
* save implicit outputs

[#81086754]