Replaced shouldExit with ExitAction