catch browser exception