Made the CDEEventStore flush: method asynchronous. It was using performBlockAndWait: and could sometimes deadlock if an event store operation was calling back to the main queue at the same time.