Fix exception is thrown on unknown events

As suggested by @mbabker this will log an error on unknown events instead of throwing an exception.
Fix #403