code: def on_app_shutdown(self, app):
          '''Dump profile content to disk'''
  
          if self.filewatcher:
              self.filewatcher.stop()
          if self.profile:
              self.upload_page.on_destroy()
              self.download_page.on_destroy(f on_app_shutdown(self, app):
          '''Dump profile content to disk'''
  
          if self.filewatcher:
              self.filewatcher.stop()
          if self.profile:
              self.upload_page.on_destroy()
              self.download_page.on_destroy()
docs: Dump profile content to disk