Max failed events configurable.
Added Error hashcode for exception.
New interface for cleanup in EventWorker.