fix walkthrough to avoid an error raised due to the server shutting the client socket before the client tries to use 'shutdown' on it.