KillTask kill = new KillTask();
kill.setProject(project);
kill.setProcessname(PROC_NAME);
MockControl ctrl = MockControl.createControl(BgProcess.class);
BgProcess proc = (BgProcess)ctrl.getMock();
proc.kill();
ctrl.setThrowable(new BuildException("blah"));
ctrl.replay();
ProcessRegistry.registerProcess(PROC_NAME, proc);
try {