NodeJS troubleshooting help

Is there a way out of your loop that doesn’t create an error condition? Maybe it’s just hitting that? With Javascript, it almost always is about async race conditions.