/// <summary>
        /// Method to register the user. For use by threading to prevent UI thread blocking.
        /// </summary>
        /// <returns>
        /// Returns whether the registration was successful.
        /// </returns>
        private bool Reg()
        {
            var net = new Networking(this.user);
            var result = false;
            try
            {
                result = net.Register(user);
            }
            catch
            {
            }
            finally
            {
                net.CloseNetwork();
            }

            running = false;
            return result;
        }