Much better way to check for headnodes going away