updated exception logging