logging all exceptions