balderdashy/sails — pull request #39 by curtislacy (2012-09-10 13:03:41+00:00)
Title: Configurable (optional) shutdown hook

This checks for a function beforeShutdown() in the config object, and ties it in to the process shutdown process if it exists.