Show progress dialog while committing to file if it takes a long time.