some exception logging fixes