If a reply is received with an error, then the handle_error() function in gril.c will log the response, sequence number and error code automatically.

Note, in certain cases ( ie. like SIM IO ), we may want to log the message anyways as we've found there are certain exceptions to the rule that error != SUCCESS means no event data, however I don't think that's the case here.