Cleanly stop amqp worker in the TestCase
Fix test_close