Potential fix for concurrent modification exception

The exception occurs when attempting to log events in rapid succession.
The queue is added to while a for loop was looping through items in it.
Changed to a traditional for loop, which should not lock the queue from
being added/removed to.