Handling expiration and error states, log stub file