Make sure the progress dialog from the previous commits gets dismissed on the UI thread