Clean up the root config and servlet context.