shut the write direction; it will all be irrelevant since the socket will be closed immediately after.