Caches errors that cannot be logged and try to log them next time the error log is created