- fix race condition of calculation of processing of last chunk
- orchestrate error/output messages from threads