Logging some errors.

Close #1
Merge branch 'master' into handle_errors
Merge pull request #4 from aleborba/handle_errors

Logging some errors.