prevent 'unknown event' message in error case

in case of an error, an error message is shown to the user, which is expected and works fine. But also an 'unknown event' message is printed on the console, which should not happen, because the event has been handled correctly.