initial prune support
added EventErrorModeEnum (not yet in use) and addded EventHandler extension for raising an event
added event error handling policy
added lic header and clean up