Graceful shutdown for modules and locale check for the server.