This module helps to avoid such unpredictable cases. This module is easy to install and it does not break any other functionalities, it does not conflict with any third party modules and it does not make any changes to UI. It only adds an additional cronjob task, which in the background reads Magento logs from the server every 10 minutes and if there is any new issue detected it sends a report to administrator's email, which might be addressed to a responsible person and fixed immediatelly. Additionally, once a week, it sends a summary report with all the issues detected during a week. This allows quickly detect problems and potential vulnerabilities which increases the stability of the site.