Simplify log queue clearing.

Simply just keep popping the queue until it's empty. No point in using a for loop for this.

Combined some if statements too.
Merge pull request #180 from lioncash/log-window-cleanup

Small log queue clearing simplification.