def closeEvent(self, event):
    '\n        Clean up and send the WINDOW_CLOSED_MESSAGE on the response pipe \n        before closing the window.\n        '
    self.__timer.stop()
    self.__cmndpipe.close()
    try:
        try:
            self.__rspdpipe.send(WINDOW_CLOSED_MESSAGE)
        finally:
            self.__rspdpipe.close()
    except Exception:
        pass
    event.accept()
Clean up and send the WINDOW_CLOSED_MESSAGE on the response pipe 
before closing the window.
def closeEvent(self, event):
    '\n        Clean up and send the WINDOW_CLOSED_MESSAGE on the response pipe \n        before closing the window.\n        '
    self.__timer.stop()
    self.__cmndpipe.close()
    try:
        try:
            self.__rspdpipe.send(WINDOW_CLOSED_MESSAGE)
        finally:
            self.__rspdpipe.close()
    except Exception:
        pass
    event.accept()