Close and reopen hid device