def __del__(self):
    if ((self._parent_pid == os.getpid()) and self.is_alive()):
        self.shutdown()
def __del__(self):
    if ((self._parent_pid == os.getpid()) and self.is_alive()):
        self.shutdown()