--- a/Beremiz_service.py Wed Dec 07 17:51:20 2016 +0300 +++ b/Beremiz_service.py Wed Dec 07 17:54:41 2016 +0300 @@ -417,6 +417,7 @@ sys.stdout.flush() self.daemon.requestLoop() + self.daemon.sock.close() def Stop(self): if self.plcobj is not None: