Check for a pid rather than connected property of process before killing.

For whatever reason, I was seeing that a phantom process would be left behind and running tests with grunt-contrib-qunit on Mac OS X10.9.2.  Checking for a pid and not the connected property of the process addressed the problem.  Its possible this might address https://github.com/gruntjs/grunt-contrib-qunit/issues/60.