Cleanup and sense-making stuff.