Fixed cancellation of IMAP operations