Fix broken pipe error.