Move shutdown processing to the Node level