Closes the connecting socket to generate an error.
internal void AbortConnect() { Socket socket = _dataSocket; if (socket != null) { try { socket.Close(); } catch (ObjectDisposedException) { } } }