Quit browser when error occurs