Fixed #2. stopping progress when wd error occurred