onExit() issue