Threaded Analytics Destination Timely Exit

The Google-analytics example of a threaded analytics destination sleeps for an entire logging interval (30s in my case) in the destructor before closing. This probably works OK for most projects, but it is quite annoying when debugging and seems like it could cause problems when dumping final logs in a crash scenario. Is there any easy way to manually trigger a batch of events to send and close without this long pause?