Ok here is an overview of what\'s going on:
M <-- Message with unique id of 1234 | +-Start Queue | | | <-- Exchange /|\\ / | \
I am a little unclear on what you are trying to achieve here. But I would probably alter the design somewhat so that once all messages are cleared from the queues you publish to a separate exchange which publishes to queue 4.