code: def quit(self):
          
          logger.debug("ArgosApplication.quit called")
          assert len(self.mainWindows) == 0, \
              "Bug: still {} windows present at application quit!".format(len(self.mainWindows))
          self.qApplication.quit()
docs: Quits the application (called when the last window is closed)