Added consumer, producer and connection explicit close calls