Add log configuration options. Make sure browser.quit() has time to finish.