prevent fatal errors