prefer shared, avoid overzealous cleanup