Extra logging
Implemented work-around for #543 and #542
Added extra catch blocks to recover from rendering errors.