CloseMailBox is a Boolean function that closes the currently selected mailbox. CloseMailBox requires that
ConnectionState contain the value csSelected, or an
EIdConnectionStateError exception will be raised. CloseMailBox calls
SendCmd using the IMAP CLOSE command, and sets
ConnectionState to csAuthenticated on successful completion.