Keep track of the exception at the same time as the message identifier