How to make sure that the Driver is inactive before calling stop_sequences

I read it in the warnings before using stop_sequences we have to make sure that the driver is inactive, how can we make sure of that ?