'Close currently selected mailbox.
Deleted messages are removed from writable mailbox.
This is the recommended command before \'LOGOUT\'.
(typ, [data]) = <instance>.close()'

def close(self):

    try:
        (typ, dat) = self._simple_command('CLOSE')
    finally:
        self.state = 'AUTH'
    return (typ, dat)
