sorry maybe I’m missing something but are you also terminating the socket proxy on connection close? or disposing of it? I think that works as an even listener which would explain why memory leaks. Let me know if that helps or if I missed something, that’s a very interesting problem. good luck!