Add catch for situation where we need to kill an IMAP connection even though we don't have a mailbox selected