       @killProcessOnDarwinAndLinux(childPid)
 
     # kill parent process
-    process.kill(parentPid)
+    try process.kill(parentPid)
 
   # NOTE stolen from Atom's BufferedNodeProcess API (Oops!)
   killProcessOnWin32: (parentPid) ->

        for childPid in childPids
          @killProcessOnWin32(childPid)
        # kill parent process
        process.kill(parentPid)
    catch error
      # TODO show proper error notification here
      console.log("Spawn error")

      out = ''
      wmicProcess.stdout.on 'data', (data) ->
        out += data
      wmicProcess.stdout.on 'close', =>
        # get child process pids
        childPids = out.split(/\s+/)
                      .filter (pid) -> /^\d+$/.test(pid)
