Proper closing rabbitmq connection