fix(browser): fail instead of hanging when the browser stops responding (#10956)