client exit gracefully logout