more detailed exception logging