Now the client is closed gracefully on server stop