Normally, the Node.js process will exit when there is no work scheduled, but a listener registered on the 'beforeExit' event can make asynchronous calls, and thereby cause the Node.js process to continue.
2 May 2016 Now to download a file by calling this endpoint, I believe what the The reason is because JavaScript can't access file system to save the files.