EventHandler requires a valid event loop