New to Node, Mongoose & Mongodb - haven\'t read the source code...
I have a Node application which opens a file, parses the lines into records and saves the reco
What JohnnyHK said is correct. Add "SIGTERM" as well.
Simple example to use connection.close()
https://gist.github.com/pasupulaphani/9463004#file-mongoose_connet-js