def event_close(self, *args, **kwargs):
self.print_message("<STR_LIT>")<EOL>
Overwrite this function if you need to do a shutdown procedure.

If you want to clean up, you are responsible for using
self._window.deleteLater() appropriately. Otherwise it will just
close the window.