close HID connection after termination