I have a macOS app window where I present a sheet that lets a user login to a server. When the user selects the cancel login option, I would like the sheet to be dismissed and the hosting window closed. I know how to dismiss the sheet. How do I close the window?