fixed publishing messages after restoring connection to RabbitMQ