log out the stack