Log errors that bubble up to the loop.
Merge pull request #4 from cgenuity/master

Log errors that bubble up to the loop.