renamed nodeId to clientId in method preRemoveClientService