Graceful exit on pipe errors