Notify that an error occurred when attempting to deliver messages
to the server. This callback indicates that the messages have
not been delivered to the server and are no longer queued.
Parameters:
messages - the messages that were not delivered
exception - the exception that was raised when attempting
to deliver the messages.