Minor bugfixes: check for completion, and update user totals after updating files_users counts
Fixing race conditions, logic fix