In some cases device check causes an exception
In some cases device check causes an exception

Fixes bug 1035669

Check the stderr in addition to checking the return codes.

Change-Id: I05e469302bc502b540b0c4af5fbd9c712a9bd309

gkotton/vmware-nsx,gkotton/vmware-nsx