handle errors on Popen and webbrowser