Add shutdown and close methods to the client
read max message size supported by server and limit messages to that
length