close stream if sending to peer fails