Could this be a timeout issue if it is intermittent? There is a Configuration Property that you can set for either a device class or override specifically for a device, called zCommandCommandTimeout. The default is 15 seconds. You might try increasing this for a test device and see if it works more consistently.
Cheers,
Jane