implement full node deallocation

isn't here a possible raceCondition? 

You add the localNodeId and then the clusterEvent sets deallocatingNodes to something else before the settings are created?