Debug log for unreadable state files (#913)