Only report nonzero return status on last item in pipeline.
This matches semantics of bash shell pipelines.