fix: close progressDialog on error