Add an Exit MenuItem and suppress a warning