Clean up driver instances using quit rather than close to ensure no resources leak.