#5876 broken pipe handling