Disconnect from IMAP client sessions when logging out
Ensure that IMAP client sessions are dropped when logging out as well as when actually disconnected, so nothing attempts to use them when a logout is in progress.
Fixes #986 (closed)
Ensure that IMAP client sessions are dropped when logging out as well as when actually disconnected, so nothing attempts to use them when a logout is in progress.
Fixes #986 (closed)