stop ioloop on amqp clos