def close(self):
        """Closes the "connection" with the CCU. In fact it terminates the tclsh process."""
        with self._api_lock:
            if self._tclsh:
                self._tclsh.kill()
                self._tclsh = None