stop reading before stopping device
currently SamplingCounterAcquisitionSlave and IntegratingCounterAcquisitionSlave stop methods try to stop the device before setting the _stop_flag to True (flag used to exit the reading loop).
Therefore, it is possible that the reading task tries to get data from a device which is actually stopped.