Add maximum limit to event queue size.

By default this is 5000.
Can be altered by setting MaxEventQueueSize in [EventRecorder]