adding code from https://github.com/karma-runner/grunt-karma/pull/59/files to kill background processes