app.run() can open if browser is not successfully set