MULE-7041: EventProcessingThread must manage exceptions thrown by implementation classes

_ Fixing license header
(cherry picked from commit d1ab2bc)
(cherry picked from commit 36ef6fd)