Fixing up the monitoring thread for the amqp stuff.