Fixed incorrect browser exit detection in RunAndWait() which could lead to Browser file corruption due to incomplete updates.