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.
Merge pull request #249 from jaredculp/refactor_worker

Refactor worker