[Socket] Fix memory usage
[Socket] Fix memory usage

Listeners in the EventEmitter still kept references to outside vars
leading to gc failing and huge increasing memory usage.

Removing the listeners when closing the connection fixes the issue.

krageon/socket,capturePointer/socket-server,iNiSiRe/socket,clue-labs/socket,reactphp/socket,dolphin4ik/socket,timgws/socket