'Wraps the method the same way all the others are wrapped, but removes
the reference to the queue object after it gets deleted on the server.'

def queue_delete(self, *args, **kwargs):

    wrapped = self.__wrap_channel_method('queue_delete')
    queue_name = kwargs['queue']
    d = wrapped(*args, **kwargs)
    return d.addCallback(self.__clear_consumer, queue_name)
