better std::exception logging for block/undo files