diff --git a/OMPython/OMCSession.py b/OMPython/OMCSession.py index 861f2a3a..769e4ec2 100644 --- a/OMPython/OMCSession.py +++ b/OMPython/OMCSession.py @@ -702,8 +702,8 @@ def __del__(self): if isinstance(self._omc_zmq, zmq.Socket): try: self.sendExpression("quit()") - except OMCSessionException: - pass + except OMCSessionException as exc: + logger.warning(f"Exception on sending 'quit()' to OMC: {exc}! Continue nevertheless ...") finally: self._omc_zmq = None @@ -720,7 +720,7 @@ def __del__(self): self._omc_process.wait(timeout=2.0) except subprocess.TimeoutExpired: if self._omc_process: - logger.warning("OMC did not exit after being sent the quit() command; " + logger.warning("OMC did not exit after being sent the 'quit()' command; " "killing the process with pid=%s", self._omc_process.pid) self._omc_process.kill() self._omc_process.wait()