Manage the node.js signal and the process termination hooks.