add some notice for the max_size in buffer
bugfix: force flush when worker exiting