Add interface for exceptions thrown from event worker

Capture exceptions in event manager worker thread
Last one gets stored and can be rethrown from other thread
Use typed exceptions in event manager
Adapt unit tests