Fixed issue with not setting not connect after close, added test for multiple items on the queue and compression.