address race condition between process exiting and consuming stderr