proper stopping of node.