markov_generator.js tool now exits properly once done.