def METHOD_NAME(self, event=None):
    try:
        if (not IN_MODAL_DIALOG and (stdin_ready() or
                                    update_requested() or
                                    (clock() - self.t0) > 15)):
            self.timer.Stop()
            self.evtloop.Exit()
            del self.timer, self.evtloop
            clear_update_request()
    except KeyboardInterrupt:
        print('Captured Ctrl-C!')
    except:
        print(sys.exc_info())