finish activity with progressbar and setFinalErrorCount(int)