Fixed reopening device files when replugging USB cable