Fix pipe exit status