Catch exceptions and send them to window.onuncaughtException(e). sendUncaughtException(e) is just a more robust way of calling this function