Preventing critical data loss