Can you close the PWA programmatically?

See [Preparing your application for Production]
(https://vaadin.com/docs/flow/production/tutorial-production-mode-basic.html) in the Vaadin Docs