Deployment script changes for Node.in global scope and closing running app.