Revised exception logging aspect.