proper termination
flush log only when queue is empty