To close a mailbox:
Choose Close from the Mailbox menu or Window menu, or press Alt+F4.
When the last open mailbox is closed, Mailer exits.