def on_exit(self, info):
if self.prompt_on_exit:<EOL><INDENT>retval = confirm(parent  = info.ui.control,<EOL>message = "<STR_LIT>",<EOL>title   = "<STR_LIT>",<EOL>default = YES)<EOL>if retval == YES:<EOL><INDENT>self._on_close( info )<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._on_close( info )<EOL><DEDENT>
Handles the user attempting to exit Godot.