Optimize uncaughtException event binding.