fixes AMQP.shutdown