added memory and perforamce tests
added close method to channels to be called when done sending messages