RabbitMQConnection: Configure socket to send unsent data before closing the socket

Change-Id: I57d0415645864ec149406a274b95a6e3c16fedd7
RabbitMQListener: Flush channel before destroying the listener

Change-Id: I4b5c4dc9150f3345ae53a5b79d83b4c391dda961