Changed to heap based buffers for Client, thus avoiding the direct memory leak. Heap buffers will be more aggressively GCed.