Fixed unhandled Win32Exception.

Exception was occurring when calling Process.HasExited