Catch Exception and print to error log.

Instead of polluting log with full traceback.
Merge pull request #4 from oversize/master

Catch Exception and print to error log.