'Dump profile content to disk'

def on_app_shutdown(self, app):

    if self.filewatcher:
        self.filewatcher.stop()
    if self.profile:
        self.upload_page.on_destroy()
        self.download_page.on_destroy()
