closes the processing dialog when the last task is processed