Port 3.0 changes.

Enable clean-ish shutdown of registered driver instance following DriverManager.deregisterDriver(...)