Adjusted to shut down the HTTP server before deleting the static web content
directory. This ensures that no requests come in with no content to serve.