Should always flush the buffered logs in awk pipe

Otherwise, we will lose the buffered logs after sending cleanup termination signal to workers.