exception while logging