Add missing imap command completion status check.