Use quit method of drivers instead of close.