renamed shutdown -> close
tried to add multiplexing