Merge "Send DeviceResetCmd after task handle is dropped." into main