Modify the httpserver to account for shutdown commands.