Automatic disconnection of IMAP. Fixed #95.