      from lib.multithreading import terminate_processes
      queue_manager.terminate_queues()
      terminate_processes()
      logger.debug("Cleanup complete. Shutting down queue manager and exiting")
      queue_manager._log_queue.put(None)  # pylint: disable=protected-access
      while not queue_manager._log_queue.empty():  # pylint: disable=protected-access
          continue
      queue_manager.manager.shutdown()
  
  
  class GetModel():
 
</s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name </s> remove     rotation_matrix = cv2.invertAffineTransform(  # pylint: disable=no-member
 </s> add     rotation_matrix = cv2.invertAffineTransform(  # pylint:disable=no-member </s> remove         transformed = cv2.transform(points,  # pylint: disable=no-member
 </s> add         transformed = cv2.transform(points,  # pylint:disable=no-member </s> remove from lib.utils import safe_shutdown
 </s> add from lib.utils import FaceswapError, safe_shutdown
    queue_manager._log_queue.put(None)  # pylint:disable=protected-access
    while not queue_manager._log_queue.empty():  # pylint:disable=protected-access
      from lib.multithreading import terminate_processes
      queue_manager.terminate_queues()
      terminate_processes()
      logger.debug("Cleanup complete. Shutting down queue manager and exiting")
    queue_manager._log_queue.put(None)  # pylint:disable=protected-access
    while not queue_manager._log_queue.empty():  # pylint:disable=protected-access
    queue_manager._log_queue.put(None)  # pylint:disable=protected-access
    while not queue_manager._log_queue.empty():  # pylint:disable=protected-access
          continue
      queue_manager.manager.shutdown()
  
  
  class GetModel():
keep keep keep keep replace replace keep keep keep keep keep
 FaceswapError Exception. Added to cli and utils 
lib/utils.py