Fix crash with driver.quit