diff --git a/management/univention-management-console/src/univention/management/console/resources.py b/management/univention-management-console/src/univention/management/console/resources.py index f3121617228..0d6d74a4b31 100644 --- a/management/univention-management-console/src/univention/management/console/resources.py +++ b/management/univention-management-console/src/univention/management/console/resources.py @@ -293,6 +293,8 @@ class ModuleProcess(_ModuleConnection): # type: (int) -> None pid = self.pid() CORE.process('ModuleProcess: child %d (%s) exited with %d%s' % (pid, self.name, returncode, self.str_returncode(returncode))) + if self._client and not self._client._closed: + self._client.close() self.disconnect_inactivity_timer() def str_returncode(self, returncode):