Log exceptions which happened before message handling