Before this when rclone exited the stats would just show the last printed version, rather than the actual final state.
Before this fix rclone didn't wait for the stats to be finished before exiting, so the final new line was never printed. After this change rclone will wait for the stats routine to cease before exiting.
Fixes #2347 Fixes #1210