correct pipeline exit status