Better error handling for the menu.state change event