log caught exceptions

fix #36