Plugin/QuotePlugin.php
public function aroundAfterSave(\Magento\Quote\Model\Quote $subject, callable $proceed)
    {
        if ($subject->getIsActive()) {
            return $proceed();
        }
        return $subject;
    }
public function aroundAfterSave(\Magento\Quote\Model\Quote $subject, callable $proceed)
    {
        if ($subject->getIsActive()) {
            return $proceed();
        }
        return $subject;
    }
public function aroundAfterSave ( \ Magento \ Quote \ Model \ Quote $ subject , callable $ proceed ) { if ( $ subject -> getIsActive ( ) ) { return $ proceed ( ) ; } return $ subject ; }
Override Quote afterSave method.
Skip execution for inactive quotes, thus preventing dispatching the after save events.

@param \Magento\Quote\Model\Quote $subject
@param callable $proceed
@return \Magento\Quote\Model\Quote
Override Quote afterSave method . Skip execution for inactive quotes thus preventing dispatching the after save events .