when stop client, send message server and sender thread stopped.