Catch an exception when killing processes.

This change catches the IllegalThreadStateException that is thrown when
Process.exitValue() is called for a process that isn't dead yet.

Testing done:

VDD regression suite.