made uncaught errors critical