Flush the analytic events. The returned future should resolve once the
events have been flushed, or event flushing has exhausted all retries
and failed.
Stop the event processor. The event processor may be started again, so
stop should not take any actions which prevents the event processor from
being started.