class_docstr: A standard class for monitoring the progress of a VTK algorithm.
  
  This must be use in a ``with`` context and it will block keyboard
  interrupts from happening until the exit event as interrupts will crash
  the kernel if the VTK algorithm is still executing.
  
  Parameters
  ----------
  algorithm
      VTK algorithm or filter.
  
  message : str, default: ""
      Message to display in the progress bar.
docstr: Exit event for ``with`` context.
docstr_tok: ["Exit","event","for","``","with","``","context","."]
code: def __exit__(self, *args):
      """Exit event for ``with`` context."""
      self._progress_bar.total = 1
      self._progress_bar.refresh()
      self._progress_bar.close()
      self.algorithm.RemoveObservers(self.event_type)
      if threading.current_thread().__class__.__name__ == "_MainThread":
          signal.signal(signal.SIGINT, self._old_handler)
  
imports: import collections
  import logging
  import os
  import re
  import signal
  import sys
  import threading
  import traceback
  from pyvista.core import _vtk_core
label_desc: Use image node_id 5 for calling the ProgressMonitor obj's underlying member method code with example usage: obj.__exit__() without return types