Better exceptions logging