SD: when a client close the app the client count is reduced