Added handling for errors in event creation. Fixed HttpSuccessEvent.