Deal with failure by always pre-writing an HTML file