rigol-ds: Deal with dev_close() getting called multiple times.