Add better handling for when invalid uid is sent when sending a device command