Added logging for when there is no handler, made the worker continue after retrying or failing on error
made the error logging also listen to the verbose flag
Better error handling and adding a unit test for error handler