imbox: call close() before logout
imbox: call close() before logout

The imaplib documentation recommends calling close() before logout to ensure
that 'deleted messages are removed from writable mailbox.'

hivelocity/imbox,johnbaldwin/imbox,martinrusev/imbox,doismellburning/imbox,ookami-kb/imbox,eliangcs/imbox,amuzhou/imbox