Move this line after fetching the `@node_infos` and log the number of nodes we're going to unregister. Example:

`$logger->info("Unregistering ".scalar(@node_infos)." nodes for $pid");`