Correctly iterate through OrderedMessageQueue queue in destructor