I'm on Ubuntu 12.10 and hitting this very often which makes scripting the tools a huge pain.
Here's my simple repro:
#!/bin/bash
while true; do
sdc-listmachines --limit 100 --offset 0
EXIT_CODE=$?
echo "Exit code: $EXIT_CODE"
if [[ $EXIT_CODE -ne 0 ]]; then
exit $EXIT_CODE
fi
done