Detect browser crashes and force an exit