Added the _record_error function which is safe for startup code