reverted to an older way of determining if the browser is still active