Handles on the client when the server shuts down the connection.