Implemented emulated disconnect before the driver stops.