close unused IMAP sessions