I would like to replace the last line of the run function (i.e. http.server_forever()) with try: httpd.serve_forever() finally: httpd.server_close() (use case: during testing I want to run different publishers one after the other, on the same port, stopping them with CTRL-C; this is currently impossible since the port is busy if httpd.server_close() is not called). Is that fine? Michele Simionato