close client with message when server shutdown