Close loggers and HTTP servers before exiting on shutdown