The code has been refactored so that the archiver is back to the original code, and the stderr is handled using a go routine to avoid deadlock.