onuncaughtException is defined AND it's a function