log caught exceptions
Merge pull request #38 from antonagestam/issue36

log caught exceptions