# Check if the observation object is really in OFF state.
ifstoppedisTrue:
ifstopped:
self.info_stream("Successfully stopped the observation with ID={}.".format(obs_id))
else:
self.warn_stream("Could not shut down the Observation device (\"{}\") for observation ID={}. This means that there is a chance for a memory leak. Will continue anyway and forcefully delete the Observation object.".format(observation["device_name"],obs_id))