fix eventemmiter memory leak on reconnect