not printing errors with broken pipe