I could update my code to use the async.series callbacks to terminate the app. I'll do that to make it clearer what's happening. It should also make the code shorter.