Adding handling of unexpected content creation errors. Issue #5.