Cleanly close RabbitMQ inside dispatcher.py
Match dev