Restart node.js programs only when they exit with a non-zero exit code