Background: http://stackoverflow.com/questions/15583237/clean-shutdown-of-express-js-mongodb-server-using-node-js