imap: Moved imap_logout() to be grouped with the other perform functions