imap_close to destructor