fix pipe not ending on error