finish stack management