Fixed major bug related with reconnecting to rabbit mq