Fix exception logger