Clean the internal stack setup.