Update to stop animation activity indicator when connection failed, currently the transfer speed is very slow.