Clean up old resources.