- Properly stop the imap daemon at logout. Fixes #4199.