Stop progress bar when connection failure