public void Stop()
    {
        try
        {
            Reader.close();
            Writer.close();
            Socket.close();
            Listener.stop();
        }
        catch(Exception e)
        {
            Utils.LogException(e, "Stopping client");
        }
    }