the pic above is what happend one the server when I shutdown a client.
Server side code:
create Actor System
ServerActor has a child actor which has a hashset to store clients path. When a client starts, it first sends a ClientConnectRequest to ServerActor, Then ServerActor pass this message to its child actor to handle it.
child actor add Watch to client:
child actor Handle terminated message