implement handle_events()
implement Window::error()