Workaround, catch broken pipe error.