check outputstream for broken pipe
patch by Pawel Mirski; reviewed by jbellis for CASSANDRA-5150