Merge pull request #248 from shenrie/master

Should fix broken CEI tests trying to use _create_event
Added an exception handler for when events fail to publish during container shutdown