//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void forceClose() throws IOException
        private void forceClose()
        {
            IOException rethrownException = null;

            try
            {
                in_.close();
                out_.close();
            }
            catch (java.net.SocketException socketException)
            {
                if (socketException.ToString().IndexOf("Socket closed", StringComparison.Ordinal) >= 0)
                {
                    // Ignore this exception
                }
                else
                {
                    rethrownException = socketException;
                    throw rethrownException;
                }
            }
            finally
            {
                try
                {
                    socket_.close();
                }
                catch (java.net.SocketException socketException)
                {
                    if (socketException.ToString().IndexOf("Socket closed", StringComparison.Ordinal) >= 0)
                    {
                        // Ignore this exception
                    }
                    else
                    {
                        // Only throw an exception if one has not yet been thrown.
                        if (rethrownException == null)
                        {
                            throw socketException;
                        }
                    }
                }
            }
        }