{"action":"closed","issue":{"url":"https://api.github.com/repos/gruntjs/grunt/issues/1244","repository_url":"https://api.github.com/repos/gruntjs/grunt","labels_url":"https://api.github.com/repos/gruntjs/grunt/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt/issues/1244/comments","events_url":"https://api.github.com/repos/gruntjs/grunt/issues/1244/events","html_url":"https://github.com/gruntjs/grunt/issues/1244","id":47515532,"number":1244,"title":"Add method to shutodwn current grunt instance and all child process","user":{"login":"johannesjo","id":1456265,"avatar_url":"https://avatars.githubusercontent.com/u/1456265?v=3","gravatar_id":"","url":"https://api.github.com/users/johannesjo","html_url":"https://github.com/johannesjo","followers_url":"https://api.github.com/users/johannesjo/followers","following_url":"https://api.github.com/users/johannesjo/following{/other_user}","gists_url":"https://api.github.com/users/johannesjo/gists{/gist_id}","starred_url":"https://api.github.com/users/johannesjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannesjo/subscriptions","organizations_url":"https://api.github.com/users/johannesjo/orgs","repos_url":"https://api.github.com/users/johannesjo/repos","events_url":"https://api.github.com/users/johannesjo/events{/privacy}","received_events_url":"https://api.github.com/users/johannesjo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-01T20:07:38Z","updated_at":"2016-02-13T21:05:03Z","closed_at":"2016-02-13T21:05:03Z","body":"I know there is grunt.fatal and grunt.error, but both are not able to shutdown grunt if a task is run as a child proccess using concurrent or watch. It would be very nice to have a global shutdown method, to kill all currently running tasks. An usage example would be, to prevent multiple instances of grunt from messing up each other.\r\nSomething like this:\r\n```\r\n  grunt.registerTask('kill', function() {\r\n    grunt.shutdown();\r\n  });\r\n```"}}