Improved exceptionhandling in eventsdispatcher