Ensure worker doesn't crash on API errors

Fixes bug https://github.com/rackspace-titan/qonos/issues/98