Cleaning up the node