Is it possible to override the exit() function?

I’m wanting to display a splash asking the user if they really want to exit when the NativeApplication.nativeApplication.exit() method is called. I’m listening for Event.EXITING but can’t seem to override the actual exit() function.