cleaning up nodeKilled()