ThreadPool.QueueUserWorkItem (delegate {
try {
rr = service.Repositories.RegisterRepository (pdlg, url, true);
} catch (Exception ex) {
} catch (System.Exception ex) {
error = ex;
} finally {
done = true;