Exit on broken pipe