Cleanup register_node