The indentation is the way it should be.
The orionExitFunction is called 'if (response == "DIE")' ...