Fixing an issue with node.js server restart.