@on_exit.setter
def on_exit(self, handler):
    'Set the handler to invoke before the app exits.\n\n        Args:\n            handler (:obj:`callable`): The handler to invoke before the app exits.\n        '
    self._on_exit = wrapped_handler(self, handler)
    self._impl.set_on_exit(self._on_exit)
Set the handler to invoke before the app exits.

Args:
    handler (:obj:`callable`): The handler to invoke before the app exits.
@on_exit.setter
def on_exit(self, handler):
    'Set the handler to invoke before the app exits.\n\n        Args:\n            handler (:obj:`callable`): The handler to invoke before the app exits.\n        '
    self._on_exit = wrapped_handler(self, handler)
    self._impl.set_on_exit(self._on_exit)