                                          -wrapPort #{@wrapPort}
                                          -jlpath \"#{@jlpath()}\"
                                          -boot \"#{@script 'boot.jl'}\""])
-            fn @proc
+            fn proc
           return
         else
           client.stderr "PowerShell version < 3 encountered. Running without wrapper (interrupts won't work)."
-      @proc = child_process.spawn(@jlpath(), ["-i", @script("boot.jl"), port], cwd: workingdir)
-      fn @proc
+      proc = child_process.spawn(@jlpath(), ["-i", @script("boot.jl"), port], cwd: workingdir)
+      fn proc
 
   getFreePort: (fn) ->
     server = net.createServer()

    client.connected conn

  start: (port) ->
    return if @proc?
    client.booting()
    @checkPath @jlpath()
      .then =>

                                            .output[1].toString()) > 2
        if @useWrapper
          @getFreePort =>
            proc = child_process.spawn("powershell",
                                        ["-NoProfile", "-ExecutionPolicy", "bypass",
                                         "& \"#{@script "spawnInterruptible.ps1"}\"
                                         -cwd \"#{workingdir}\"
