You could use the WaitForExit method with a short timeout value.