from the docs Handle the closeStackRequest message if you want to prevent a stack from being closed. Notes: If the closeStackRequest handler does not pass the message or send it to a further object in the message path, the stack does not close. Passing the message allows the stack to close.