Refactor worker.py

Make code cleaner and move away from mox tests and towards Mock tests
Add polling exception with logging

Raise exception and capture error message. Bubble up to base worker class.