fix #1097 stop progress bar when network unavailable

* fix #1097 
* fix #1098