refactor(destroy): calling certain methods throw an error if node is destroyed