terminate the client after disconnect msg from server