EventStoreLayer: Support for Finalizing EventStore and testing for corruption and other fixes.