rescue broken pipe error when writing to client sockets