could not write bytes:broken pipe