@classmethod
def _stop_running_process(cls):
    """stop self generated DS9 windows when user quits python window."""
    while cls._process_list:
        process = cls._process_list.pop()
        if process.poll() is None:
            process.terminate()
