Selenium relies on an executable called taskkill.exe that is not present in windows versions of WindowsXP and lower. You will need to add a try catch around the quit call to make sure your script does not error out.
CrossBrowserTesting Support » Selenium Testing » Why does Selenium error on driver quit with WindowsXP