driver.close is used instead of quit