Use socket shutdown on writing side