And sanity check to prevent a hang when using Firefox