logging exceptions during class init