pre SharedMain destruction