public void run()
    {
        InputStream lIn = null;
        OutputStream lOut = null;
        
        try
        {
            // Get the streams.
            lIn = socket.getInputStream();
            lOut = socket.getOutputStream();

            if(!login(lIn, lOut, uid, pwd)) return;

            // Start the REPL.
            scripty.startInteractive(lIn, lOut, lOut);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        finally
        {
            if(lIn != null) try {lIn.close();}catch(Exception ignored){}
            if(lOut != null) try {lOut.close();} catch(Exception ignored){}
            try {socket.close();} catch(Exception ignored){}
        }
    }