bugfix an uncaught exception, publishing to an already closed topic.