public void Stop()
        {
            if (hubProxy != null)
            {
                Console.WriteLine("Disposing of hub proxy");
                hubProxy.Dispose();
            }

            if (hubConnection != null)
            {
                Console.WriteLine("Stopping hub connection");
                //fyi issues an abort message to the server
                hubConnection.Stop();
            }
        }