throw exception if node fails to exit
explicitly call process.exit()

On larger sets of less files node was not actually exiting.

Calling process.exit(0) seems to fix this.