Add error handling to LMU and LSD Writer

Error handling is extreme basic (same as LDB and LMT), needed for LCF2XML.

Don't want to mess with the templates to improve this...