driver.close()
command closes the currently active window on which the user is working or the window being currently accessed by the web driver.driver.quit()
command, unlike the driver.close()
command it closes all the windows opened by the program and hence should be used with care.