raise NotImplementedError in on_remove_node callback