Changed driver.quit() to driver.close() because

Close() - It is used to close the browser or page currently which is
having the focus.

Quit() - It is used to shut down the web driver instance or destroy the
web driver instance(Close all the windows).

This may change depending on the flow or future experiments