Made safeguard to not initiate new connection when one connection already
exists.
Logic change for removeSocket to properly remove socket with specified inetAddr.